functionnoneTrueQ

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

Extends from BusinessSimulation.Icons.Function (Icon for functions).

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

Inputs

TypeNameDefaultDescription
Boolean[:]xVector of booleans

Outputs

TypeNameDefaultDescription
BooleanyTrue, if no element of the input vector is true