|
<list_var> ##= <list>
Append Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist to Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Glossary: Variable, var_refvariable.
Flow control: if … thenIf any of both Glossary: Operator Glossary: Operandoperands is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, Flow control: if … then Flow control: try … thenthen it is converted to a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist first.
e.g.:
Instructions: var How does VScript::Value() work?: Var*&var a={2,4,8},b="abc";
a ##= "de";
b ##= a;
a ##= {1,"2",3}
Operators: Bitwise Not "~" Operators: Boolean Negation "!"note: Vipsi command syntax: Operators Operators Glossary: Operatoroperator ##= Operators: Append Text to Variable "#=" Operators: Append List to Variable "##=" Operators: Concatenate Texts "#" Operators: Concatenate Lists "##"concatenates two Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallists. Flow control: if … thenif you wish to append a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist as a single item Operators: Make Identifier "@"at Flow control: if … then Flow control: try … thenthe Flow control: end Shell Immediate Commands: exit, quit, endend of another Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, you must Instructions: putput it into a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist first:
vipsi> Instructions: var How does VScript::Value() work?: Var*&var a={1,2,3}, b=a, i4="i4", i5={5,6}
vipsi> a ##= i4 = { 1, 2, 3, "i4" }
vipsi> b ##= {i4} = { 1, 2, 3, "i4" }
vipsi> a ##= i5 = { 1, 2, 3, "i4", 5, 6 }
vipsi> b ##= {i5} = { 1, 2, 3, "i4", { 5, 6 } }
vipsi>
Operators: Bitwise Not "~" Operators: Boolean Negation "!"Note: Operators: Assignment "=" Built-in operators: Assignments:Assignment Vipsi command syntax: Operators Operators Glossary: Operatoroperators 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 … thenthe "=" Numeric functions: signsign e.g. in Literals: List literals Lists and arrays: List literalslist literals. List functions: thisThis also allows named items in other places, e.g. passing named Vipsi command syntax: Arguments Glossary: Argumentsarguments to Vipsi command syntax: Procedures Data Types: Procedures Glossary: Procedureprocedures for a obj-C-like syntax. (planned for Flow control: if … then Flow control: try … thenthe future)
| |