|
+ |
Use this operator to add. You can also use + to concatenate strings of characters, for example: "It is now: "+Hour(Now)+Minute(Now) In this case, using + will not add the value Hour with the Minute; instead, it will merge them as strings, such as: It is now: 1230 |
|
- |
Use this operator to subtract. |
|
* |
Use this operator to multiply. |
|
/ |
Use this operator to divide. |
|
= |
Use this operator to test the equality of two statements. |
| < |
Use this operator to test the relative sizes of two statements. |
| > |
Use this operator to test the relative sizes of two statements. |
| <> |
Use this operator to test the inequality of two statements. This is askiascript's equivalent to ≠. |
|
>= |
Use this operator to test the relative sizes of two statements. This is askiascript's equivalent to ≥. |
|
<= |
Use this operator to test the relative sizes of two statements. This is askiascript's equivalent to ≤. |
|
. (decimal symbol, as used in 9.99) |
Use the . symbol as a decimal separator. Regardless of the field type, as well as the host system's Regional Options settings, Askia will only accept . as a decimal symbol (, will be refused). For example, in a routing we wish to set a numerical value. We will write: 123.456 |
|
Abs() |
Use this function to return the absolute value (the opposite if the number is negative). For example: Abs ( - 3) returns 3 Abs (3) returns 3 |
|
And |
Use this operator to define statements which are based on a specific combination of two or more variables. For example: ??Q1??=1 And ??Q2??=1 |
|
Avg() |
This is AskiaScript's abbreviation for average. Use this function to calculate the numerical average of responses, including DK and NA. For example, this function enables you to calculate the average of responses given to a loop's numerical sub-question: Avg(??Q1. Grade??) |
|
DK |
Use this operator to refer to the system "Don't know" response. DK can be used only with the following variable types:
For example: ??Q1??=DK
Note: To refer to an Open question's Don't Know response, use the following syntax: ??Q1??="" |
|
False |
Use this operator to qualify a statement, thereby enabling you to save time and increase clarity when defining conditions. For example, the two following statements are equivalent, but the use of false simplifies the first one: Negative statement: (??Q1??=2 And ??Q2??=5)=False Positive statement: (??Q1??=1 Or ??Q1??=3 Or ??Q1??=4 Or ??Q1??=5) And (??Q2??=1 Or ??Q2??=2 Or ??Q2??=3 Or ??Q2??=4) |
|
Int() |
Abbreviation for Integer. Calculates the integer value of a numeric value containing decimals. For example: Int(??Q1??) if Q1=3.27 the function will return 3. Note: this function truncates decimal values, so Int(2.879) will return 2.
|
|
Max |
Use this function to retrieve the highest value of a question. For example, if Q1 is a multi-coded closed question: Max(??Q1??) if Q1={5;3;10}, the function will return the value 10. |
|
Min |
Use this function to retrieve the smallest value of a question. For example, if Q1 is a multi-coded closed question: Min(??Q1??) if Q1={5;3;10}, the function will return the value 3. |
|
Mod |
Abbreviation for modulo. Use this function to calculate a division's modulo. For example: ??Q1??Mod??Q2?? If ??Q1??=15, and ??Q2??=2, the function will return 1. |
|
Not |
Use this function to negate a statement. This function follows the same logic as statements qualified with the operator False. For example: Not(??Q1??=1) is the equivalent of writing: (??Q1??=1)=False |
|
Or |
Use this operator to define a condition based on two or more interchangeable/equivalent statements. For example: ??Q1??=1 Or ??Q2??=5 |
|
Pow(,) |
Pow(Value,Power) This function returns the power of a value. For example: Pow(2,3) returns 2 * 2 * 2 = 8 Pow(144, 1 / 2 ) returns 12 |
|
Sum() |
Use this function to calculate the sum of a loop's Numeric sub-questions, including the system DK and NA values. For example: Sum(??Q1.??) |
|
True |
Use this operator to qualify a statement, for example: (??Q1??=2 And ??Q2??=5)=True However, a condition is True by default, so qualifying this proposition with =True is redundant.
(??Q1??=2 And ??Q2??=5)True would be the same as: (??Q1??=2 And ??Q2??=5)=False
The main use of the True operator is when used as a stand-alone condition. In this case, it ensures that the routing will only be executed if the respondent has been asked, or has seen, the Start variable's screen. |