Content inside an IF block executing, unexpectedly (1 Viewer)

Isaac

Lifelong Learner
Local time
Today, 12:59
Joined
Mar 14, 2017
Messages
8,777
Ok, this is going to be something incredibly dumb on my part, but what am I just probably staring straight at and not getting here?
The controltiptext is me holding my mouse over the listcount, which shows as 1.

Why is the inner text inside the IF block executing ?? Am I crazy?

1606761952128.png
 

Gasman

Enthusiastic Amateur
Local time
Today, 20:59
Joined
Sep 21, 2011
Messages
14,237
I would have put a breakpoint on the If statement and then inspected the variable?
 

Isaac

Lifelong Learner
Local time
Today, 12:59
Joined
Mar 14, 2017
Messages
8,777
I would have put a breakpoint on the If statement and then inspected the variable?
Aww, crap. Of course! It was > 1 at one time, and then = 1 by the time some of the removeitem lines had executed.

I knew it was something really really dumb............I've had 2 cups of strong coffee today, so not sure what excuse to give....The economy? Covid? High tuition rates? ha ha

Thanks Gasman!!
 
Last edited:

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 14:59
Joined
Feb 28, 2001
Messages
27,146
Reminds me of the coffee we used to see in the Chief Petty Officer's Coffee Mess club. You could drink it or use it to remove barnacles from a fiberglass speed hull.
 

Users who are viewing this thread

Top Bottom