Equinox Online Help - Language Reference - A to Z

Home

ArrayNot

Applies to
SyntaxArrayNot ArrayExpression
ActionPerforms a logical NOT operation on each element in the array expression.
ScopeUsable anywhere
Notes

This statement performs the operation a[n] = not a[n] on each element in the array.

CategoryArrays
See Also ArrayFind, ArrayFindNext, ArrayGetDimensions, ArraySearch, ArraySearchNext, ArraySetDimensions, ArraySort, ArrayNeg, Vector, VectorSize
Example

This example prints 0 0 1 0 1 0

int a[]

a = 1,2,false,-3,0,true
ArrayNot a
Print a,;;

This example prints 1 0 1 0

int a[][4]

a = 1,2,-3,4,false,true,0,3
ArrayNot a[2]
Print a[2],;;