seandisanti Posted December 20, 2005 Posted December 20, 2005 it doesn't seem like this should display 2 message boxes, but it does... I couldn't remember if negatives evaluated as true or false, but rather than check the helpfile, i opened up scite and just wrote a check... then because i had nothing better to do, i threw in a 'Not' to see if the condition evaluated to false, but it didn't... $a = 2 $b = 3 if $a - $b Then MsgBox(0,"yep","negatives evaluate to true") if Not $a - $b Then MsgBox(0,"yep","negatives evaluate to true")
seandisanti Posted December 20, 2005 Author Posted December 20, 2005 thisif Not $a - $b Then MsgBox(0,"yep","negatives evaluate to true")evaluates to ...(Not $a) - $b0 -3try...if Not ($a - $ Then MsgBox(0,"yep","negatives evaluate to true")thanks, didn't even think to check precedence...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now