<var_ref> = <list> [ <number> ]
<var_ref> = <list> [ <number> , <number> [, …] ]
<list> = <list> [ <number> to ]
<list> = <list> [ to <number> ]
<list> = <list> [ <number> to <number> ]
<text> = <text> [ <number> ]
<text> = <text> [ <number> to ]
<text> = <text> [ to <number> ]
<text> = <text> [ <number> to <number> ]
Operators: Item selector "[]" Operators: Select "? :"Select item Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or range of items from Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist. Operators: Item selector "[]" Operators: Select "? :"Select Character Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or range of characters from Data Types: Text Item selector "[]": Text Glossary: text, text_valtext.
Flow control: returnReturns a Glossary: Variable, var_refvariable reference, Glossary: list, list_vallist value Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Glossary: text, text_valtext value.
Flow control: if … then Flow control: try … thenThe […] Vipsi command syntax: Operators Operators Glossary: Operatoroperator Operators: Item selector "[]" Operators: Select "? :"selects an item Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or a range of items from a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Data Types: Text Item selector "[]": Text Glossary: text, text_valtext.
Numeric functions: indexIndexes start Operators: Make Identifier "@"at 1.
Ranges are start to Flow control: end Shell Immediate Commands: exit, quit, endend inclusive. Flow control: if … then Flow control: if … thenIf the start Numeric functions: indexindex is omitted, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe range starts Operators: Make Identifier "@"at Flow control: if … then Flow control: try … thenthe start of Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Data Types: Text Item selector "[]": Text Glossary: text, text_valtext. Flow control: if … then Flow control: if … thenIf the Flow control: end Shell Immediate Commands: exit, quit, endend Numeric functions: indexindex is omitted, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe range extends to Flow control: if … then Flow control: try … thenthe Flow control: end Shell Immediate Commands: exit, quit, endend of Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Data Types: Text Item selector "[]": Text Glossary: text, text_valtext. Flow control: if … then Flow control: if … thenIf the start Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Flow control: end Shell Immediate Commands: exit, quit, endend Numeric functions: indexindex of a range is outside Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or Data Types: Text Item selector "[]": Text Glossary: text, text_valtext size, Flow control: if … then Flow control: try … thenthen it is forced inside.
Flow control: if … then Flow control: if … thenIf the Numeric functions: indexindex of a single item is less Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or equal 0, Flow control: if … then Flow control: try … thenthen List functions: thisthis yields an error. Flow control: if … then Flow control: if … thenIf the Numeric functions: indexindex in a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist is beyond Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Flow control: end Shell Immediate Commands: exit, quit, endend, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist is extended to create that item. Flow control: if … then Flow control: if … thenIf the Numeric functions: indexindex in a Data Types: Text Item selector "[]": Text Glossary: text, text_valtext is beyond Flow control: if … then Flow control: try … thenthe Data Types: Text Item selector "[]": Text Glossary: text, text_valtext Flow control: end Shell Immediate Commands: exit, quit, endend, Flow control: if … then Flow control: try … thenthen List functions: thisthis yields an error.
Flow control: if … thenIf Flow control: if … thenif only one item in a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist varibale is selected, Flow control: if … then Flow control: try … thenthen a reference to that item is returned. Flow control: if … then Flow control: try … thenThen you can overwrite Flow control: if … then Flow control: try … thenthe contents of List functions: thisthis Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist item. e.g.:
vipsi> Instructions: var How does VScript::Value() work?: Var*&var mylist = {1,2,3}
vipsi> mylist[3] = "4711"
vipsi> Instructions: putput mylist { 1, 2, "4711" }
vipsi>
Overwriting ranges of items is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not yet implemented. (version 0.8.7)
Flow control: if … then Flow control: if … thenIf the selected item again is a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist, an item in List functions: thisthis Operators: Subtract "-"sub Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist can be selected by either of these versions:
Instructions: putput mylist[i,j]
Instructions: putput mylist[i][j]
You can also Operators: Item selector "[]" Operators: Select "? :"select a range in a Operators: Subtract "-"sub Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist like List functions: thisthis:
Instructions: putput mylist[i,a to e]
Instructions: putput mylist[i][a to e]
You can access items beyond Flow control: if … then Flow control: try … thenthe Flow control: end Shell Immediate Commands: exit, quit, endend of a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist. Flow control: if … then Flow control: try … thenThen List functions: thisthis Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and all intermediate items are instantly created, all unnamed Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and set to 0.0.
vipsi> Instructions: var How does VScript::Value() work?: Var*&var mylist={}
vipsi> mylist[10]
vipsi> Instructions: putput mylist { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
vipsi>
vipsi - the friendly one.: The nameThe name of a selected item is preserved, even Flow control: if … thenif […] operates on a Glossary: list, list_vallist value (Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Operators: Bitwise Not "~" Operators: Boolean Negation "!"not a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist Glossary: Variable, var_refvariable).
vipsi> Instructions: putput Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername List functions: env Shell Immediate Commands: env Shell Immediate Commands: envenv[1] KDE_MULTIHEAD
vipsi>
Flow control: if … then Flow control: if … thenIf the left-side Glossary: Operator Glossary: Operandoperand is a Glossary: text, text_valtext value, Flow control: if … then Flow control: try … thenthen you can access individual characters Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and ranges of charracters with Flow control: if … then Flow control: try … thenthe same syntax. List functions: thisThis syntax is preferred over Text functions: leftstrleftstr Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Flow control: if … then Flow control: try … thenthe like.
Overwriting single characters Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or ranges of characters is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not yet implemented. (version 0.8.7)
You can Operators: Item selector "[]" Operators: Select "? :"select a character Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or range of characters of a Data Types: Text Item selector "[]": Text Glossary: text, text_valtext in a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist just like an item in a Operators: Subtract "-"sub Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist by either of these versions:
Instructions: putput mytextlist[i,j]
Instructions: putput mytextlist[i][j]
Instructions: putput mytextlist[i,a to e]
Instructions: putput mytextlist[i][a to e]
|