(self, parent)
| 279 | |
| 280 | class ContainerIf(Container): |
| 281 | def __init__(self, parent): |
| 282 | super().__init__(parent) |
| 283 | self.condition = None |
| 284 | self.isElseIf = False |
| 285 | self.isElse = False |
| 286 | def fromText(self, text : str): |
| 287 | if (not text.startswith("if") and not text.startswith("else if") and not text.startswith("} else") and not text.startswith("else")): |
| 288 | raise SyntaxError("If container does not start with if or else if") |