You can just make two functions and represent the true
and false
as 1 and 0 respectively: (bool
is short for boolean
which is the type of variable where the values are only true
and false
)
Although I do wish I this was in the settings extension as well.
You mean variables of any type? (Not just limited to numbers, strings, number arrays) This would be harder to do in blocks cause you can’t pass custom types around as parameters to functions so you would have to get all the bits of data you need to replicate out of your object, then when loading it get all those data bits (which have to be numbers, strings, or number arrays themselves) and make a new object with them.
This would be painful annoying but you could do something like this: (untested)