Jump to content

NOT quite right


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...