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