<name> = @<text>
Flow control: returnReturns Flow control: if … then Flow control: try … thenthe Glossary: text, text_valtext value converted to a Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername.
Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, IdentifierNames are identifiers for Glossary: Variable, var_refvariables Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and Vipsi command syntax: Procedures Data Types: Procedures Glossary: Procedureprocedures Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and some special Vipsi command syntax: Functions Functions Glossary: Functionfunctions like Text functions: convert Instructions: convertconvert. Using Vipsi command syntax: Operators Operators Glossary: Operatoroperator @ it is possible to calculate Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiernames for Glossary: Variable, var_refvariables etc. Operators: Make Identifier "@"at runtime.
e.g.:
Instructions: var How does VScript::Value() work?: Var*&var a=1;
Instructions: var How does VScript::Value() work?: Var*&var theName="a";
Instructions: putput @theName;
Instructions: var How does VScript::Value() work?: Var*&var tabWidth=4
Text functions: convert Instructions: convertconvert myText to @(Constants: tabtab#tabWidth)
All Add "+": Monadic operator "+" Subtract "-": Monadic operator "-" Built-in operators: monadic operators:monadic operators have highest Glossary: Operator Glossary: Operandoperand binding but Vipsi command syntax: Operators Operators Glossary: Operatoroperator @ tops Flow control: if … then Flow control: try … thenthem all. Flow control: if … thenIf you want to pass a calculated Vipsi command syntax: Expressions Glossary: Expressionexpression to List functions: thisthis Vipsi command syntax: Operators Operators Glossary: Operatoroperator it's best that you always use Separators: Round brackets "( … )" Functions with varying return types: bracket expression "()"parenthesis.
e.g.:
wrong:
Instructions: var How does VScript::Value() work?: Var*&var @"aaaaaaaaaaa"[to 3] = 77
right:
Instructions: var How does VScript::Value() work?: Var*&var @("aaaaaaaaaaa"[to 3]) = 77
Flow control: if … then Flow control: try … thenThe above example defines a Glossary: Variable, var_refvariable named 'aaa'. Flow control: if … then Flow control: try … thenThe first version Flow control: do … loopdoes Operators: Bitwise Not "~" Operators: Boolean Negation "!"not work, because Vipsi command syntax: Operators Operators Glossary: Operatoroperator @ has an even higher priority than range selector []. Therefore Flow control: if … then Flow control: try … thenthe first example evaluates to:
Instructions: var How does VScript::Value() work?: Var*&var (@"aaaaaaaaaaa")[to 3] = 77
=>
Instructions: var How does VScript::Value() work?: Var*&var aaaaaaaaaaa[to 3] = 77
which is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not what you meant Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and, lucky enough, syntactical nonsense, so that Flow control: if … then Flow control: try … thenthe parser complains with an error.
In About this Guide: General Built-in operators: Generalgeneral Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Operators Operators Glossary: Operatoroperator @ is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not recommended for beginners.
|