Sorry but I'm no so stupid boys?
I know you asked
@aeric , so no problems.
TOGGLE_ON is not Boolean, it is a Global Byte (or Int, now I do not remember) variable, in this case TOGGLE_OFF is 0 and TOGGLE_ON is 1, but because I need to add more I do not just use a Boolean, I plained this when started a project. There are a couple of these.
Even A_Array(i).Mode that I compare to is Byte or Int, both the same type.
As it is a good pratice I always follow it and put costants in UPPER CASE.