.Modelica_Requirements.LogicalFunctions.first

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

Interface

function first
  extends Modelica.Icons.Function;
  input Boolean b[:] "Boolean vector";
  output Boolean result "Value of the first entry";
end first;

Generated at 2025-01-09T19:26:08Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos