Menu

Match

Type: List

Closest

match_close( $question, input, value )

Set the option where the output is closest to the value.
In case no matches are found, the first option is set.

Minimum

match_min( $question, input, value )

Set the option where the output is bigger or equal and closest to the value.
In case no matches are found, the option with the minimum output is set.

Maximum

match_max( $question, input, value )

Set the option where the output is smaller or equal and closest to the value.
In case no matches are found, the option with the maximum output is set.

Contains

contains( [value, ...], value )

Contains() is used to check if a list contains a certain value, it returns True or False
The first param must be a list object (for example $question.outputs.id ), the second is a value that is not a list.

Type: Table

Minimum

match_table_min( $question, [inputs], [values] )

Set the option where all outputs are bigger or equal and closest to their corresponding values.
In case no matches are found, the first option is set.

Maximum

match_table_max( $question, [inputs], [values] )

Set the option where all outputs are smaller or equal and closest to their corresponding values.
In case no matches are found, the option with the minimum output is set.

Menu