Sign in to follow this  
Followers 0
emmanuel

NOT quite right

5 posts in this topic

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



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

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

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0