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}); // trueFunction.noneTrueQ({true, false, false}); // false
Function.noneTrueQ({false, false, true}); // false
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean[:] | x | Vector of booleans |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | y | True, if no element of the input vector is true |