vipsi - the friendly vip script interpreter

Operators

Bitwise Not "~"

<number> = ~<number>

Operators: Bitwise Not "~"Bit toggle, bitwise Operators: Boolean Negation "!"negation.

Flow control: if … then
Flow control: try … then
The
Add "+": Monadic operator "+"
Subtract "-": Monadic operator "-"
Built-in operators: monadic operators:
monadic operator
~ Flow control: returnreturns Flow control: if … then
Flow control: try … then
the
2'Operators: Bitwise Not "~"s complement of Flow control: if … then
Flow control: try … then
the
supplied numeric Glossary: Valuevalue.

Bitwise Vipsi command syntax: Operators
Operators
Glossary: Operator
operators
work on 32 bits. Flow control: if … thenIf you need less, you must mask Flow control: if … then
Flow control: try … then
the
result. Flow control: if … then
Flow control: if … then
If the
supplied Glossary: Valuevalue is a Data Types: Text
Glossary: text, text_val
text
, Flow control: if … then
Flow control: try … then
then
it is automatically evaluated as a Glossary: number, num_valnumber.

e.g.:

a = ~a
a = a & ~$20

Valid HTML   Valid CSS