Operator malfunction
Posted: Fri May 13, 2022 4:57 pm
I had a modest "switch" statement in a handler. All of a sudden, it stopped working, that is, none of the case statements would fire. I could see nothing wrong with it. So I inserted a "case" test just before the switch (pseudo):
I got a beep, but only one, the first one. Stepping through, flow passed right past the switch.
The only way out, and I had no idea it would work, was to rewrite from scratch the original switch construction. I did, and after that, everything worked fine. I got two beeps.
And OK, I know the thread title is a pervasive, insidious issue. I have suffered from it forever. I am not asking for anything.
Craig
Code: Select all
if xyz is "true" then beep
switch
case xyz = "true"
beep
break
...
The only way out, and I had no idea it would work, was to rewrite from scratch the original switch construction. I did, and after that, everything worked fine. I got two beeps.
And OK, I know the thread title is a pervasive, insidious issue. I have suffered from it forever. I am not asking for anything.
Craig