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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean[:] | b | Boolean vector |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | result | Value of last entry |
