suve

awful: function: not

Declaration

bool :not ( bool $VAL )
bool :! ( bool $VAL )

Summary

Takes a single value and returns a negation of its value. If the argument is not a boolean, it will be cast silently.

Example

# Check if array is empty.
!if :not :array-count &ARR
    :writeln s'derp, array is empty!'
    !fi

wikipage modified on 2014/0601/2317