Set value (routing action)

 Use this action to store a specific value in a variable. The value stored can vary depending on whether or not the routing instruction's condition, when evaluated, returns true or false.

For the value if true and (optionally) the value if false, the value stored in the target variable can be a numeric value, a set of numeric values or a string of characters. The value to be stored is determined by a block of AskiaScript code, which can be simple (e.g. simply specifying a value) or more complex (with the value being contingent on the evaluation of conditions). Examples include:

 

Note: If you are inside a loop and the start question of the routing set value is equal or after the target question, then the system will use the previous iteration as current iteration value instead of the real current iteration. If you want to always use the current iteration or specify on which iteration you would like to set a value then use Run as askiascript routing action.
Create your own Knowledge Base