emmanuel Posted June 22, 2004 Share Posted June 22, 2004 ok, why is this not valid? if $cmdline[1] not "/h" I get:Line 0: if $cmdline[1] not "/h" or $cmdline[1] not "/?" then if ^ ERROR Error: Error in expression.If I used <> instead of NOT it would work fine. And, to me, it looks like I'm using "not" as it should be used, as stated in the helpfile, on the operator's description page:NOT Logical NOT operation. e.g. NOT 1 (equals 0)Does Logical mean that it only works in binary or numeric situations? "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Valik Posted June 22, 2004 Share Posted June 22, 2004 If Not ($cmdLine[1] = "/h") Or Not ($cmdLine[1] = "/?") Then Not behaves like the inverse operator in bash (Linux shell). It takes whatever the result is and inverts it. Link to comment Share on other sites More sharing options...
pekster Posted June 22, 2004 Share Posted June 22, 2004 Does Logical mean that it only works in binary or numeric situations?This might help you understand NOT a bit more. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Link to comment Share on other sites More sharing options...
emmanuel Posted June 22, 2004 Author Share Posted June 22, 2004 thank you both, I will read up on NOT... "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
CyberSlug Posted June 22, 2004 Share Posted June 22, 2004 Keep in mind that NOT acts on one operand. Comparsion operators like greater-than, less-than, equals all act on two operators. (operand1 > operand2) NOT (operand) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
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