.Modelica_Requirements.LogicalFunctions.last

Information

Syntax

last(b);

Description

The function returns the value of the last element of a Boolean vector b.

Example

The property is demonstrated with the following example calling the function as:

lastBooleanElement = last( b )
simulation result

Interface

function last
  extends Modelica.Icons.Function;
  input Boolean b[:] "Boolean vector";
  output Boolean result "Value of last entry";
end last;

Generated at 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos