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