emmanuel 0 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) Share this post Link to post Share on other sites
Valik 478 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. Share this post Link to post Share on other sites
pekster 0 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. Share this post Link to post Share on other sites
emmanuel 0 Posted June 22, 2004 thank you both, I will read up on NOT... "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
CyberSlug 6 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! Share this post Link to post Share on other sites