List functions: split Instructions: splitsplit <text_var>
List functions: split Instructions: splitsplit <text_var>, <separator>
List functions: split Instructions: splitsplit <list_var>
List functions: split Instructions: splitsplit <list_var>, <separator>
List functions: split Instructions: splitSplit Flow control: if … then Flow control: try … thenthe Data Types: Text Item selector "[]": Text Glossary: text, text_valtext Operators: Make Identifier "@"at Flow control: if … then Flow control: try … thenthe given Separatorsseparator Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and store Flow control: if … then Flow control: try … thenthe resulting Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist of Data Types: Text Item selector "[]": Text Glossary: text, text_valtext chunks in Flow control: if … then Flow control: try … thenthe original Glossary: Variable, var_refvariable. Flow control: if … then Flow control: try … thenThe Separatorsseparator must be a Glossary: text, text_valtext value Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and may be a single character Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or any longer Data Types: Text Item selector "[]": Text Glossary: text, text_valtext. It is removed Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Operators: Bitwise Not "~" Operators: Boolean Negation "!"not preserved when splitting a line.
Flow control: if … thenIf no Separatorsseparator is given, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe Data Types: Text Item selector "[]": Text Glossary: text, text_valtext is List functions: split Instructions: splitsplit Operators: Make Identifier "@"at any character which looks like a line break: char(0), char(10), char(13) Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and char(10)+char(13).
Flow control: if … thenIf List functions: split Instructions: splitsplit is passed a Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist instead of a Glossary: text, text_valtext value, Flow control: if … then Flow control: try … thenthen it works on all Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist items. Recursively.
There is also a Vipsi command syntax: Functions Functions Glossary: Functionfunction List functions: split Instructions: splitsplit which Flow control: returnreturns Flow control: if … then Flow control: try … thenthe Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist of Data Types: Text Item selector "[]": Text Glossary: text, text_valtext fragments.
Instructions: var How does VScript::Value() work?: Var*&var mytext = Text functions: file Instructions: filefile "foobär"
List functions: split Instructions: splitsplit mytext // into lines
List functions: split Instructions: splitsplit mytext, Constants: tabtab // each line Operators: Make Identifier "@"at Constants: tabtabs
|