Module script_value

Module script_value 

Source
Expand description

Validation of script values, which are values that update dynamically based on rules given in their math blocks.

Scriptvalues can also be non-dynamic, in the sense of being just a literal or the name of another script value.

Functions§

validate_bv 🔒
Validate a script value. It can be a block or a value. As a value, it may be an integer or boolean literal, or a target scope sequence, or a named script value. As a block, it may be a { min max } range, or a calculation block which is validated with validate_inner. (Boolean script values are rare but valid. They can’t have calculation blocks.)
validate_else 🔒
Validate else blocks that are part of a script value. Just like validate_if, but warns if it encounters a limit field.
validate_if 🔒
Validate if or else_if blocks that are part of a script value. Checks the limit field and then relies on validate_inner for the heavy lifting.
validate_inner 🔒
Validate a block that’s part of a script value.
validate_iterator 🔒
Validate a block inside an iterator that’s part of a script value. Checks some fields and then relies on validate_inner for the heavy lifting.
validate_minmax_range 🔒
Validate one of the fixed_range or integer_range script value operators. These are rarely used.
validate_non_dynamic_script_value
Validate a script value that’s not allowed to do calculations. It must be a literal or the name of another script value that’s also not allowed to do calculations.
validate_script_value
validate_script_value_no_breakdown