vipsi - the friendly vip script interpreter

Operators

Shift Right Variable ">>="

<num_var> >>= <number>

Shift Glossary: Valuevalue of numeric Glossary: Variable, var_refvariable bitwise right <number> times.

List functions: thisThis may yield a fractional Glossary: number, num_valnumber! Right side Glossary: Operator
Glossary: Operand
operand
may be negative but Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
fractional (will be forced to integer). List functions: thisThis works for any Glossary: number, num_valnumber of any size, even fractional Data Types: Numbersnumbers. Flow control: if … then
Flow control: try … then
The
effect is that of dividing Flow control: if … then
Flow control: try … then
the
Glossary: Variable, var_refvariable by a multiple of 2, Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
, more techi, decrementing Flow control: if … then
Flow control: try … then
the
Number literals: Floating pointfloating point exponent by Flow control: if … then
Flow control: try … then
the
given Glossary: number, num_valnumber.

Both Glossary: Operator
Glossary: Operand
operands
must be numeric. Flow control: if … thenIf any of both Vipsi command syntax: Arguments
Glossary: Arguments
arguments
is a Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
, Flow control: if … then
Flow control: try … then
then
it is evaluated as Glossary: number, num_valnumber. Flow control: if … then
Flow control: if … then
If the
conversion fails Flow control: if … then
Flow control: try … then
then
an error is generated.

Flow control: if … thenIf any of both is a Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
list
, Flow control: if … then
Flow control: try … then
then
Flow control: if … then
Flow control: try … then
the
operation is performed on all items. Recursively.

e.g.:

Instructions: var
How does VScript::Value() work?: Var*&
var
a=20 a >>= 5 a >>= {"-1",2,3}

Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
Note
:
Operators: Assignment "="
Built-in operators: Assignments:
Assignment
Vipsi command syntax: Operators
Operators
Glossary: Operator
operators
Flow control: do … loopdo Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
Flow control: returnreturn a result Glossary: Valuevalue. There are syntactical ambiguities with Flow control: if … then
Flow control: try … then
the
"=" Numeric functions: signsign e.g. in Literals: List literals
Lists and arrays: List literals
list literals
. List functions: thisThis also allows named items in other places, e.g. passing named Vipsi command syntax: Arguments
Glossary: Arguments
arguments
to Vipsi command syntax: Procedures
Data Types: Procedures
Glossary: Procedure
procedures
for a obj-C-like syntax. (planned for Flow control: if … then
Flow control: try … then
the
future)

Valid HTML   Valid CSS