def type_if(self, node):
        result = (self.compress(node.condition), self.compress(node.thenPart)) % "if(%s)%s"

        elsePart = getattr(node, "elsePart", None)
        if elsePart:
            result += "else"

            elseCode = self.compress(elsePart)
        
            # Micro optimization: Don't need a space when the child is a block
            # At this time the brace could not be part of a map declaration (would be a syntax error)
            if not elseCode.startswith(("{", "(", ";")):
                result += " "        
            
            result += elseCode
        
            self.__handleForcedSemicolon(elsePart)
        
        return result
dataset/ETHPy150Open zynga/jasy/jasy/js/output/Compressor.py/Compressor.type_if/swapped operands of `%`