.Modelica_Requirements.LogicalBlocks.AnyTrue

Information

Output y is true if at least one input is true, otherwise output y is false.

The input connector is a vector of Boolean input signals. When a connection line is drawn, the dimension of the input vector is enlarged by one and the connection is automatically connected to this new free index (thanks to the connectorSizing annotation).

If no connection to the input connector "u" is present, the output is set to: y=false.

Example

This block is demonstrated with the following example:

results in

simulation result

This block is similar to block Or, but has a slightly different icon and the internal function call is inlined (so it is a bit more efficient).


Generated at 2024-10-31T19:25:48Z by OpenModelicaOpenModelica 1.24.0 using GenerateDoc.mos