first(b);
The function returns the value of the first element of a Boolean vector b.
The property is demonstrated with the following example calling the function as:
firstBooleanElement = first( b )
simulation result |
function first extends Modelica.Icons.Function; input Boolean b[:] "Boolean vector"; output Boolean result "Value of the first entry"; end first;