.BusinessSimulation.Functions.noneTrueQ

Gives true, if no element in a vector of Booleans is true

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 none of the elements in the input vector is true, and false otherwise.

Syntax


Function.noneTrueQ(vec);

Examples


Function.noneTrueQ({false, false, false}); // true
Function.noneTrueQ({true, false, false}); // false
Function.noneTrueQ({false, false, true}); // false

See also

Functions.allTrueQ

Interface

function noneTrueQ
  extends BusinessSimulation.Icons.Function;
  input Boolean x[:] "Vector of booleans";
  output Boolean y "True, if no element of the input vector is true";
end noneTrueQ;

Generated at 2025-04-01T18:24:36Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos