Skip to main content



NumberOfTrue Function

The NumberOfTrue function returns the number of provided conditions that evaluate as true.

Syntax

NumberOfTrue(condition1, condition2, ...)

The NumberOfTrue function returns the number of provided conditions that evaluate as true.

Arguments

condition Boolean - Conditions to evaluate.

Remarks

Example:

NumberOfTrue(5=5, "hello"="hello", true); // returns 3

Example:

NumberOfTrue(5=25, "hello"="goodbye", false); // returns 0