Convert Boolean to Integer signal
Block that outputs the Integer
equivalent of the Boolean input.
y = if u then integerTrue else integerFalse;
where u is of Boolean and y
of Integer type,
and integerTrue and integerFalse are parameters.
-
May 17, 2022, by Hongxiang Fu:
Corrected documentation texts where the variables were described with wrong types.
This is for
Buildings, issue 3016.
-
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the
Modelica Standard Library.
Generated at 2025-11-05T19:21:08Z
by OpenModelicaOpenModelica 1.25.5 using GenerateDoc.mos