Conditions by Script

Note: the original version of AskiaScript (version 1) has been superseded by AskiaScript 2.0. For backwards compatibility with existing projects, AskiaScript 1.0 is still supported, but for all new scripting you should use AskiaScript 2.0, which is both considerably easier to use and more powerful. The following section of the Assistant describes AskiaScript 2.0. If you are working with an older project that includes AskiaScript 1 code, please refer to the Appendix on AskiaScript version 1.

The conditions by script feature enables you to define sophisticated routing instructions. You can set up:

Note: For more information on creating scripts, see custom routing conditions in AskiaScript.

Creating a condition by script

To create a condition by script:

  1. When editing your routing instruction, click Design_RoutingMode_Conditions_ComplexConditions_ComplexConditions.
  2. Click Design_RoutingMode_Conditions_ComplexConditions_ComplexConditions2 to open the condition dialog, where you define the condition. The interface to define the condition appears as follows:
  3. Use the condition dialog as described below.
Note: If you are familiar with the syntax of your condition, you can type it directly into the entry dialog. If you would like to add comments in your condition, use a single quotation mark before each comment, for example  'this is a comment.
Note: you can drag questions from the question list into the condition dialog, saving the need to type the question name.
Note: you can enter Unicode characters as part of your script.
Create your own Knowledge Base