L3DT users' wiki
Large 3D terrain generator

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

 
plugins/general/zeoscript/reference/functions/not.txt · Last modified: 2017/08/31 05:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki