Hello can't wrap myself with this problem.I feel really stupid.
in this list of boolean the user can interact with it, and he is only allowed to have one True at the time. If one is True, the other four are False
scatter_is_01 = False
scatter_is_02 = False
scatter_is_03 = False
scatter_is_04 = False
scatter_is_05 = True
if scatter_is_01==True:
scatter_is_02 = False
scatter_is_03 = False
scatter_is_04 = False
scatter_is_05 = False
if scatter_is_02==True:
scatter_is_01 = False
scatter_is_03 = False
scatter_is_04 = False
scatter_is_05 = False
if scatter_is_03==True:
scatter_is_02 = False
scatter_is_01 = False
scatter_is_04 = False
scatter_is_05 = False
if scatter_is_04==True:
scatter_is_02 = False
scatter_is_03 = False
scatter_is_01 = False
scatter_is_05 = False
This solution is stupid and is not even working properly. because the user is forced to set the value false again if he want to set another one true again.
could someone teach me ?
scatter_is_xx need to be boolean values because the api only use boolean to create toggle buttons.