# qiskit.circuit.Instruction.c_if¶

Instruction.c_if(classical, val)[source]

Set a classical equality condition on this instruction between the register or cbit classical and value val.

Note

This is a setter method, not an additive one. Calling this multiple times will silently override any previously set condition; it does not stack.