def getIfBlock(self):
    condition = self.getExpression(_break=')')
    if (self.current == '{'):
        self.index += 1
        block = self.getBlock()
    else:
        block = self.getExpression(_break=';')
    nextValue = self.getValue(increment=False)
    elseblock = None
    if (nextValue == 'else'):
        self.index += len(nextValue)
        if (self.current == '{'):
            self.index += 1
            elseblock = self.getBlock()
        else:
            elseblock = self.getExpression(_break=';')
    return If(condition, block, elseblock)
def getIfBlock(self):
    condition = self.getExpression(_break=')')
    if (self.current == '{'):
        self.index += 1
        block = self.getBlock()
    else:
        block = self.getExpression(_break=';')
    nextValue = self.getValue(increment=False)
    elseblock = None
    if (nextValue == 'else'):
        self.index += len(nextValue)
        if (self.current == '{'):
            self.index += 1
            elseblock = self.getBlock()
        else:
            elseblock = self.getExpression(_break=';')
    return If(condition, block, elseblock)