0

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?

Azaxa
  • 49
  • 7

3 Answers3

0

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

Andrejs Cainikovs
  • 27,428
  • 2
  • 75
  • 95
0

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

Mithrandir
  • 24,869
  • 6
  • 50
  • 66
0

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

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880