! Logical Negation

Purpose

Logical negation of a Boolean value

Syntax

! i

i:function argument

Description

! i returns 0 when i is not zero and -1 when i equals 0.

Example

OpenW # 1

Local i#

i = 32

Print ! i    // Prints False

i = 0

Print ! i    // Prints True

See Also

&&,, || ^^, Operator Hierarchy

{Created by Sjouke Hamstra; Last updated: 17/09/2014 by James Gaite}