<num_var> ^= <number>
Operators: Bitwise Exclusive Or "^"Bitwise 'exclusive or' of <variable> Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and <value>.
Calculate result of Operators: Bitwise Exclusive Or "^"bitwise 'exclusive or' Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and store result in Glossary: Variable, var_refvariable.
Both Glossary: Operator Glossary: Operandoperands must be numeric Operators: Boolean And with Variable "&&=" Operators: Bitwise And with Variable "&=" Operators: Bitwise And "&" Operators: Boolean And "&&"and are forced to integer. Flow control: if … thenIf any of both Vipsi command syntax: Arguments Glossary: Argumentsarguments is a Data Types: Text Item selector "[]": Text Glossary: text, text_valtext, Flow control: if … then Flow control: try … thenthen it is evaluated as Glossary: number, num_valnumber. Flow control: if … then Flow control: if … thenIf the conversion fails Flow control: if … then Flow control: try … thenthen an error is generated.
Flow control: if … thenIf any of both 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 operation is performed on all items. Recursively.
e.g.:
i> Instructions: var How does VScript::Value() work?: Var*&var a = 23
i> a ^= 5 o> 18
i> a ^= {"77",2,3} o> = { 95, 16, 17 }
i> <>
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)
Operators: Bitwise Not "~" Operators: Boolean Negation "!"Note: Bitwise Vipsi command syntax: Operators Operators Glossary: Operatoroperators work on 64 bit integers. Flow control: if … thenIf you need less, you must mask Flow control: if … then Flow control: try … thenthe result.
Depending on Flow control: if … then Flow control: try … thenthe Number literals: Floating pointfloating point format selected when compiling vipsi, Flow control: if … then Flow control: try … thenthe precision may be less than 64 bit. 53 bit is common for 8-byte-floats.
Negative Data Types: Numbersnumbers are taken by their -1 Operators: Bitwise Not "~"complement, which is common for Number literals: Integer numbersinteger numbers.
Flow control: if … thenIf both Vipsi command syntax: Arguments Glossary: Argumentsarguments of a bitwise operation are positive, Flow control: if … then Flow control: try … thenthen Flow control: if … then Flow control: try … thenthe result is positive too in all cases. Flow control: if … thenIf one Operators: Boolean Or with Variable "||=" Operators: Bitwise Or with Variable "|=" Operators: Bitwise Or "|" Operators: Boolean Or "||"or both are negative, List functions: thisthis depends on Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Operators Operators Glossary: Operatoroperator, though it's Shell Immediate Commands: exit, quit, endquite simple: Flow control: if … then Flow control: if … thenIf the result is negative in an infinite-wide integer, Flow control: if … then Flow control: try … thenthe result of Flow control: if … then Flow control: try … thenthe Vipsi command syntax: Operators Operators Glossary: Operatoroperator is negative; e.g. +a^-a is negative.
|