vipsi - the friendly vip script interpreter

Operators

Subtract "-"

<number> = <number> - <number>
<number> = - <number>

Operators: Subtract from Variable "-="
Operators: Subtract "-"
Subtract
two numerical Glossary: Valuevalues.

Operators: Subtract from Variable "-="
Operators: Subtract "-"
Subtract
two numeric Glossary: Valuevalues Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
Glossary: text, text_valtext values, which are converted to Data Types: Numbersnumbers, results in a Glossary: number, num_valnumber. Flow control: if … thenIf one Glossary: Operator
Glossary: Operand
operand
is a Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
list
, Flow control: if … then
Flow control: try … then
the
result is a Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
list
, where Flow control: if … then
Flow control: try … then
the
operation was applied to all items. Flow control: if … thenIf both are Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
lists
, they should Numeric functions: matchmatch in size Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Flow control: if … then
Flow control: try … then
the
operation is applied to all matching items.

e.g.:

vipsi> 9-5  = 4
vipsi> Instructions: putput {4,5}-3  = { 1, 2 }
vipsi> Instructions: putput {4,5}-{2,3}  = { 2, 2 }
vipsi>  
Monadic operator "-"

Operators: Bitwise Not "~"Complements Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber Numeric functions: signsign of a Glossary: Valuevalue.

e.g.:

vipsi> -(2*3)  = -6
vipsi>  

Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
Note
: preceding a Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
with Vipsi command syntax: Operators
Operators
Glossary: Operator
operator
'-' Text functions: convert
Instructions: convert
converts
it to a Glossary: number, num_valnumber.

vipsi> Numeric functions: istextistext("2")  = 1
vipsi> Numeric functions: istextistext(-"2")  = 0
vipsi> Numeric functions: isnumberisnumber(-"2")  = 1
vipsi>  
Other usage

'-' is also used as a negative Glossary: number, num_valnumber Numeric functions: signsign for Literals: Number literals
Numbers: Number literals
number literals
.

e.g.:

Instructions: putput -123, -$affe, -"0123", -"$affe"

Valid HTML   Valid CSS