If

Selects one of two signals depending on a third boolean signal. If the boolean signal i2 is 0, o will be equal to i0. If i2 is 1, o will be equal to i1.

Blocks tree path

Primitive\Logic\If

Inputs

Name Type Description
i0 any The signal to output if i2 is 0.
i1 any The signal to output if i2 is 1.
i2 bool The boolean signal that determine whether to output i0 or i1.

Outputs

Name Type Description
o any The selected signal.