.BusinessSimulation.Functions.allTrueQ

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The function takes a vector of Booleans and will return true, if all of the elements in the input vector is true, and false otherwise.

Syntax


Functions.allTrueQ(vec);

Examples


Functions.allTrueQ({false, false, false}); // false
Functions.allTrueQ({true, true, true}); // true
Functions.allTrueQ({false, false, true}); // false

See also

Functions.noneTrueQ

Interface

function allTrueQ
  extends BusinessSimulation.Icons.Function;
  input Boolean x[:] "Vector of booleans";
  output Boolean y "True, if all elements of the input vector are true";
end allTrueQ;

Revisions


Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos