no
should be a valid value for an optional parameter in scripted effects, values and triggers.
#67
Labels
enhancement
New feature or request
no
is essentially treated as not passing a parameter in the context of conditional syntax[[PARAM] .... ]
It also means if a parameter is optional, passing
no
as value should work, even if not matching the inferred type.For example i have the following script value, where a few of the parameters are optional
Passing the default
no
should work here. Yes this could be rewritten with conditional blocks, but that would make this harder to read.Essentially doing
BASE_VALUE|$BASE_VALUE|no$|
is equivalent to doing[[BASE_VALUE]BASE_VALUE|$BASE_VALUE$|]
for the game. The first one is easier to read and shorter variant for all intents and purposed.In scripted effect/trigger cases, the syntax is similarish, and shorter
The text was updated successfully, but these errors were encountered: