IfMatchAction=THINGS THAT HAPPEN IF VALUE IS 0
The Substitute= in the above example uses [\x0023] Unicode, meaning "#". Using Unicode instead of "#" will prevent the substitute from interpreting #VariableName# as a variable (In which case, if the variable does exist, the value would always equal 0).
balala wrote: ↑November 16th, 2022, 3:29 pm
Yes, but what if the value of the #VariableName# is exactly 0? For instance, in case you have it defined as VariableName=0 in the [Variables] section, or you set it to 0 through a !Setvariable bang,
This is to return 0 in the event that the variable does not exist. 0, even if defined, is an acceptable value in this example. This is merely a failsafe in case the variable does not exist.