$not

Performs a bit-wise NOT of a value.

Syntax

$not(char)

Parameters

char

a character string, or an expression that evaluates to a character string

Return Value

Character string.

Comments

The $not function reverses the bit pattern of a single character in the fashion of a Boolean NOT and returns the resulting character.

If the char string contains more than one character, only the first character in the string (one byte) is processed. Char can be expressed as a hex code.

Example

$not("\0E")

The bit pattern of hex 0E is 00001110. The above expression reverses the bit pattern to 11110001 (hex F1).

 

Related Topics