Negate a boolean value.
bool not <bool:arg>
Name | Type | Comment |
---|---|---|
arg | bool | The boolean value to be negated. |
False if arg was true, and true if arg was false.
// 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
None.