When you have been using Gambas for years...

Post

Posted
Rating:
#1 (In Topic #299)
Avatar
Regular
Technopeasant is in the usergroup ‘Regular’
And just discovered the wonder of the NOT statement…

 :lol:

Please post your forehead smacking moment below.

 :ugeek:
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Regular
Cedron is in the usergroup ‘Regular’
 Okay, what did you smack your forehead over?

Did you discover bit twiddling?  The "true" true is -1?

Ced

.... and carry a big stick!
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Regular
Technopeasant is in the usergroup ‘Regular’
 More replacing:

If x = True Then
x = False
Else If x = False Then
x = True
End If

With:

x = Not x

The obvious simplicity is the head smacking factor.
Online now: No Back to the top
1 guest and 0 members have just viewed this.