Convert Boolean to Real signal
Block that outputs the Real
equivalent of the Boolean input.
y = if u then realTrue else realFalse;
where u is of Boolean and y
of Real type,
and realTrue and realFalse 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.
-
April 10, 2017, by Jianjun Hu:
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