qiskit/converters/ast_to_dag.py
def _process_if(self, node):
        """Process an if node."""
        creg_name = node.children[0].name
        creg = self.dag.cregs[creg_name]
        cval = node.children[1].value
        self.condition = (creg, cval)
        self._process_node(node.children[2])
        self.condition = None
def _process_if(self, node):
        """Process an if node."""
        creg_name = node.children[0].name
        creg = self.dag.cregs[creg_name]
        cval = node.children[1].value
        self.condition = (creg, cval)
        self._process_node(node.children[2])
        self.condition = None
def _process_if ( self , node ) : creg_name = node . children [ 0 ] . name creg = self . dag . cregs [ creg_name ] cval = node . children [ 1 ] . value self . condition = ( creg , cval ) self . _process_node ( node . children [ 2 ] ) self . condition = None
Process an if node.
Process an if node .