Using a boolean is considered the best coding practice, because it’s much harder to make a typing error.
For e.g. if you have:
*set gender="male"
*if (gender = "mal")
Do something
Nothing will happen here, but you won’t get an error either - so in more complex situations you can cause yourself some hard-to-find bugs (I know in this case it’d be somewhat obvious).
However if you use a boolean:
*set gender_male tru
*comment (false being female)
*if (gender = true)
Do something
This will produce an error, as you’re not allowed to set a boolean to anything but true or false.
Even if you made a typo this way:
*temp boolean_a
*set boolean_a true
*if (dog = truee)
do something
Again you’d get an error, because ‘truee’ isn’t a reserved word, the game would look for a variable (which it wouldn’t find), making it an immediately noticeable error.
There’s no “right” or “wrong” way to do this of course, but I thought I’d share that for anyone who might have an interest in programming outside of choicescript.
