I’m a bit confused about booleans in the Data Store.
I have these two variables in my scheme which are both defined as booleans:
I’ve been struggling to set is_a_test
from a checkbox, and finally realised I need to use is_a_test.checked
to set it consistently. So now it appears as true/false.
But is_deleted
is being read from the database and is getting values of 0 or 1. I’m thinking I should be converting it to a boolean for the datastore, but there isn’t an option for that in the menu.
What is the best way to handle booleans in a data store? Should I actually define values with a boolean function as numbers to have consistency with how I work with the database? (and avoid confusing myself?).
Best wishes,
Antony.
Community Page
Last updated:
Last updated: