Table of Contents

not

Description

Negate a boolean value.

Function prototype

bool not <bool:arg>

Arguments

Name Type Comment
arg bool The boolean value to be negated.

Return value

False if arg was true, and true if arg was false.

Example

// create two new boolean variables...
bool b1
bool b2

// ...and set one to true and one to false
set b1 true
set b2 false

// call 'not b1', and pipe result to event log via echo
echo <zs:not b1>

// call 'not b2', and pipe result to event log via echo
echo <zs:not b2>

… the output of which is written to the event log by echo as:

false
true

Comments

None.

See also