Assigning Value 1 or 0 to a Boolean Variable

An nyoung ha seh yo!

I have a boolean variable named ship_alone. Is it possible to assign 1 or 0 as its value instead of true or false?

Kamsahamnida,
Jed

Hi,

I expect you have also other integer variable where is stored actual value. Then:


  my_boolean = (my_integer==1)

…may help. Parenthesis are optional.

Hi,

Thanks for responding to my post.

I have no integer variable, just the boolean variable.

:slight_smile: