def node_test(self, node):
        jsvars = self.jsvars.copy()
        childs = node.children.__iter__()
        left = self.dispatch(childs.next())
        self.assert_value(node, childs.next().value, 'if')
        test = self.get_test(childs.next())
        self.assert_value(node, childs.next().value, 'else')
        right = self.dispatch(childs.next())
        return '%s ? %s : %s' % (test, left, right)
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.node_test/original