> > If Variable NOT == 0 > > NOT is an unary operator. == (equal to) is a binary operator. Placing the NOT there > will make it negate the equal to operator. So that specific syntax has to fail in > every language I know of. Only these constructs would work, be it pseudocode or real > code in a specific language: > if variable == not(0) > if not(variable == 0)
I agree with this.
Additionally you say "It is pseudo code, so it doesn't really conform to a specific language". However, even pseudo code has to have rules and syntax or it's meaningless. What are the rules of this pseudo code language regarding the usage of NOT? Were you given any examples in the book? Assuming you have a book.
GroovyMAME support forum on BYOAC
|