isFalse

Checks if a string or expression evaluates to FALSE.

Type and Usage

Parameters

The only parameter is the string or expression to be evaluated.

Output

If the parameter is a string:

  • Returns TRUE if the string begins with F, f, N, n, or is 0.

  • Returns FALSE if the string begins with any other character.

If the parameter is not a string:

  • Returns TRUE if the value is 0.

  • Returns FALSE if the value is not 0.

Example

Evaluates the string false and returns TRUE (1):

<$isFalse("false")$>

Evaluates that the integer five is greater than one and returns FALSE (0):

<$isFalse(5>1)$>

Evaluates the result of the equation as zero and returns TRUE (1):

<$isFalse(1-1)$>

Evaluates the string equality statement as true and returns FALSE (0):

<$isFalse(strEquals("abc","abc"))$> 

See Also