|
<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_valtext.
Flow control: if … thenIf any Glossary: Operator Glossary: Operandoperand is a numeric Glossary: Valuevalue, Flow control: if … then Flow control: try … thenthen it is conveted Text functions: stringto text as with Data Types: Text Text functions: stringstring.
Flow control: if … thenIf one Glossary: Operator Glossary: Operandoperand is a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe result is a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, where Flow control: if … then Flow control: try … thenthe operation was applied to all items. Flow control: if … thenIf both are Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallists, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe 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>
Operators: Item selector "[]" Operators: Select "? :"Select stream for i/o Vipsi command syntax: Instructions Instructions Glossary: Instructioninstruction:
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;
| |