I'm trying to understand the line if variable <> 1 then
.
I'm having a guess, based on a similar question for a different language, that <>
is an alternative way of saying !=
which means not equal to.
Am I right in saying this?
I'm trying to understand the line if variable <> 1 then
.
I'm having a guess, based on a similar question for a different language, that <>
is an alternative way of saying !=
which means not equal to.
Am I right in saying this?
You are quite correct: the <>
operator ist in BASIC dialects the way to indicate a not equal
.
Yes, according to the PICBASIC PRO™ Compiler Manual, the <>
comparison operator is equivalent to !=
. Think of <>
as being "less than or greater than" (but not equal to).