To use Script mode when defining a custom variable, simply type your script condition into the box. For a full description on the AskiaScript language, see AskiaScript. While you are editing your script, AskiaVista can check your script's syntax for you. To instigate this check, simply click Check variable.
Suppose we have a category question called Gender, and we want our variable to consist only of respondents who gave the answer Male. We would type the following script:
You can use the following operators in your expressions (see the AskiaScript reference for details):
AND – Boolean andOR – Boolean orNot – False (Inverse of the condition)> – Greater than– Less than= – Equal to+ – Addition- – Subtraction* – Multiplication/ – Division( – Opening parenthesis) – Closing parenthesis{ – Opening brace - begins a set of values in a multiple-response question, e.g. {1;2;3}} – Closing brace - ends a set of values in a multiple-response question, e.g. {1;2;3}