Bool True/False versus 1/0
Posted: Mon Oct 08, 2018 2:07 am
Does it make any difference of I assign a Bool variable wit True or 1 / False of 0?
I have a program in which I assign Boole versiables with 1 and 0
In decisions I also check if Bool variable = 1
For some Odd reason the program sometimes seems to compile wrong and makes wrong decisions at these bools.
If I assign the bool again with the same value and compile again it works as expected.
Is it a problem if a variable has the same name as a macro?
This happens if (bool) Encoder_Selection = 1, then execute Macro Encoder_Selection
I have a program in which I assign Boole versiables with 1 and 0
In decisions I also check if Bool variable = 1
For some Odd reason the program sometimes seems to compile wrong and makes wrong decisions at these bools.
If I assign the bool again with the same value and compile again it works as expected.
Is it a problem if a variable has the same name as a macro?
This happens if (bool) Encoder_Selection = 1, then execute Macro Encoder_Selection