.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 2024-12-03T19:25:34Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos