vipsi - the friendly vip script interpreter

Operators

Concatenate Texts "#"

<text> = <text> # <text>

Operators: Append Text to Variable "#="
Operators: Append List to Variable "##="
Operators: Concatenate Texts "#"
Operators: Concatenate Lists "##"
Concatenate
two Glossary: text, text_valtext values. Result is a Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
.

Flow control: if … thenIf any Glossary: Operator
Glossary: Operand
operand
is a numeric Glossary: Valuevalue, Flow control: if … then
Flow control: try … then
then
it is conveted Text functions: stringto text as with Data Types: Text
Text functions: string
string
.

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
then
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
, Flow control: if … then
Flow control: try … then
then
Flow control: if … then
Flow control: try … then
the
operation is applied to all matching items.

e.g.:

vipsi> Instructions: putput {1,2,3} # "anton"  { "1anton", "2anton", "3anton" }
vipsi> Instructions: putput "anton" # {1,2,3}  { "anton1", "anton2", "anton3" }
vipsi> Instructions: putput "ant" # "0123.40"  "ant0123.40"
vipsi> Instructions: putput "anton" # 0123.40  "anton123.4"
vipsi> Instructions: putput 123.456 # 0123.40  "123.456123.4"
vipsi> Instructions: putput {1,2,3} # "XYZ" ;  { "1XYZ", "2XYZ", "3XYZ" }
vipsi> Instructions: putput "XYZ" # {1,2,3} ;  { "XYZ1", "XYZ2", "XYZ3" }
vipsi> Instructions: putput {1,2,3} # {4,5} ;  { "14", "25", "3" }
vipsi>  
Other usage:

Operators: Item selector "[]"
Operators: Select "? :"
Select
stream for i/o Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instruction
:

Instructions: openopen, Instructions: openinopenin, Instructions: openoutopenout, Instructions: closeclose, Instructions: putput, Instructions: getget, Instructions: readread, Instructions: writewrite Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Instructions: getchargetchar.

e.g.:

Instructions: openopen #4, "hello.txt";
Instructions: putput#4,"hello world",Constants: nlnl;
Instructions: closeclose#4;

Valid HTML   Valid CSS