def node_if_stmt(self, node):
        jsvars = self.jsvars.copy()
        childs = node.children.__iter__()
        try:
            while True:
                stmt = childs.next()
                if stmt.value == 'if':
                    test = self.get_test(childs.next())
                    test = test % "if (%s) {"
                    self.add_lines(test, self.track_lineno(stmt))
                elif stmt.value == 'elif':
                    test = self.get_test(childs.next())
                    test = "} else if (%s) {" % test
                    self.add_lines(test)
                elif stmt.value == 'else':
                    self.add_lines('} else {')
                self.assert_value(node, childs.next().value, ':')
                self.indent()
                self.dispatch(childs.next())
                self.dedent()
        except StopIteration:
            pass
        self.add_lines("}")
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.node_if_stmt/swapped operands of `%`