Boolean To Integer
Convert Boolean to Integer signal
Description
Equations
Connections
Parameters
Modelica Standard Library
The Boolean To Integer component converts the Boolean input to an integer value preset by the parameters Integer True and Integer False.
y={Integer TrueuInteger Falseotherwise
Name
Modelica ID
u
Boolean input signal
y
Integer output signal
Default
Units
Integer True
1
Output signal for true Boolean input
integerTrue
Integer False
0
Output signal for false Boolean input
integerFalse
The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.
See Also
Signal Blocks
Signal Converters
Download Help Document