Skip to Content
API Referencelnot (logical "not")

lnot (logical “not”)

lnot(a: Array<Boolean>) -> Array<Boolean>

Returns a boolean array that is the logical negation of the input boolean array. Can also be used with the shorthand ~ operator.

Examples:

local input_array = {true, false} -- output_array = {false, true} local output_array = lnot(input_array) -- rec_array = {true, false} local rec_array = ~output_array