functionfirst

Returns the value of the first element of a Boolean vector

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

Information

Syntax

first(b);

Description

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

Example

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

firstBooleanElement = first( b )
simulation result

Inputs

TypeNameDefaultDescription
Boolean[:]bBoolean vector

Outputs

TypeNameDefaultDescription
BooleanresultValue of the first entry