Question

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?

Was it helpful?

Solution

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).

OTHER TIPS

You are quite correct: the <> operator ist in BASIC dialects the way to indicate a not equal.

Not equal. In C-like programming languages this is analog to !=.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top