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
elseblocks that are part of a script value. Just likevalidate_if, but warns if it encounters alimitfield. - validate_
if 🔒 - Validate
iforelse_ifblocks that are part of a script value. Checks thelimitfield and then relies onvalidate_innerfor 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_innerfor the heavy lifting. - validate_
minmax_ 🔒range - Validate one of the
fixed_rangeorinteger_rangescript 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