Why possibly iterate through the collection to get a count?
H
headhigh
@headhigh
0
Reputation
2
Posts
37
Profile views
0
Followers
0
Following
Best posts made by headhigh
This user hasn't posted anything yet.
Latest posts made by headhigh
-
RE: To loop or not to loop?
-
RE: If Not Else
@dhromed said:
@dave said:
It's not always stupid, or a
WTF, to set up an if in this way. It really depends on the context of
the code - it may make more sense to have the if this way
around.
The problem is that 'HidePanel' itself contains a negative. And then there's a !=. And then there's a False.
It's heinously unclear.
The only correct and clear way would be to invert that logic and use a ShowPanel var that you check for True.
Not if HidePanel was a panel that DOES the hiding.
Now who's confused?