To use script mode to define a filter, simply type your script into the box. For a full description of the AskiaScript language, see AskiaScript. While you editing your script, AskiaVista can check your script's syntax for you. To instigate this check, simply click Check filter.
Suppose we have a category question called Gender, and we want our filter to allow only 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}