.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-04-19T18:16:02Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos