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

Syntax

y = noneTrueQ(x)

Inputs (1)

x

Type: Boolean[:]

Description: Vector of booleans

Outputs (1)

y

Type: Boolean

Description: True, if no element of the input vector is true