blockBooleanToInteger

Convert Boolean to Integer signal

Extends from Interfaces.partialBooleanSI (Partial block with 1 input Boolean signal).

Information

This block computes the output y as Integer equivalent of the Boolean input u:

y = if u then integerTrue else integerFalse;

where u is of Boolean and y of Integer type, and integerTrue and integerFalse are parameters.

Parameters

TypeNameDefaultDescription
IntegerintegerTrue1Output signal for true Boolean input
IntegerintegerFalse0Output signal for false Boolean input

Connectors

TypeNameDefaultDescription
Blocks.Interfaces.BooleanInputu (from partialBooleanSI)Connector of Boolean input signal
Blocks.Interfaces.IntegerOutputyConnector of Integer output signal