Line 27: |
Line 27: |
| | | |
| According to its type ''(see above)'', you can choose a value or method to be assigned to among a list of methods: | | According to its type ''(see above)'', you can choose a value or method to be assigned to among a list of methods: |
| + | |
| | | |
| '''For Boolean variables:''' | | '''For Boolean variables:''' |
Line 33: |
Line 34: |
| * prompt at execution time | | * prompt at execution time |
| * another boolean variable value | | * another boolean variable value |
| + | |
| | | |
| '''For Numeric variables (Integer or Decimal):''' | | '''For Numeric variables (Integer or Decimal):''' |
Line 39: |
Line 41: |
| * prompt at execution time | | * prompt at execution time |
| * mathematical expression that can include any existing numeric or boolean variable as well as any available numeric [[Magic text]] and some mathematical functions (list and syntax included) | | * mathematical expression that can include any existing numeric or boolean variable as well as any available numeric [[Magic text]] and some mathematical functions (list and syntax included) |
| + | |
| * in addition, Integer type variables have 2 other kinds of settings: adding or subtracting 1 to current value (same as mathematical expression 'my_integer_variable +/- 1' but more convenient when incrementing/decrementing an index by step of 1) | | * in addition, Integer type variables have 2 other kinds of settings: adding or subtracting 1 to current value (same as mathematical expression 'my_integer_variable +/- 1' but more convenient when incrementing/decrementing an index by step of 1) |
| + | |
| + | |
| + | in expressions, booleans have value 1 if true, 0 if false |
| + | and beyond usual arithmetic operators (+ - * /) you can use |
| + | :- ** for power |
| + | :- logical operators (&& for "and", || for "or") where the operands can be booleans or numbers (0 is false, any non-zero is true) and the boolean result is converted to number |
| + | :- comparisons between numbers (<= < == != > >=) where again the boolean result is converted to number |
| + | |
| | | |
| '''For String variables:''' | | '''For String variables:''' |
| * fixed value (including concatenated string variables contents as well as any available [[Magic text]] or empty string to clear the variable content) | | * fixed value (including concatenated string variables contents as well as any available [[Magic text]] or empty string to clear the variable content) |
| * prompt at execution time | | * prompt at execution time |
| + | |
| + | <br /> |