functionlast

Returns the value of the last element of a Boolean vector

Extends from Modelica.Icons.Function (Icon for functions).

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

Inputs

TypeNameDefaultDescription
Boolean[:]bBoolean vector

Outputs

TypeNameDefaultDescription
BooleanresultValue of last entry