40

I have seen this before in SQL and VB, I am now reverse engineering an Excel speadsheet and have come across the following formula:

=IF(D23<>0,"Insufficent",0)

I am converting it to ActionScript:


var result:String = [condition] ? 0 : "Insufficient";

but I am unsure of what D23 <> 0 means, is it simply "not equal"?

Ian Nelson
  • 57,123
  • 20
  • 76
  • 103
mmattax
  • 27,172
  • 41
  • 116
  • 149

5 Answers5

75

Yes, it means "not equal", either less than or greater than. e.g

If x <> y Then

can be read as

if x is less than y or x is greater than y then

The logical outcome being "If x is anything except equal to y"

Binary Worrier
  • 50,774
  • 20
  • 136
  • 184
  • okay!! First I was confused with the question! I knew about "not equalto" but was wondering if there is anything else :) – Shoban Feb 10 '09 at 18:28
  • 1
    This made me think, what's the oprator for "equal"? Is it just "="? – Shayan Oct 30 '20 at 15:13
  • 1
    @Shayan: In vba, yes "=" means "equal" for simple types `if i = 1 then`. For objects you need is `if objRefA is objRefB then`. [See this question for more](https://stackoverflow.com/questions/11254401/vba-how-to-test-for-object-equality-whether-two-variables-reference-the-same-o/11254505) – Binary Worrier Sep 21 '21 at 14:13
10

Yes in SQl <> is the same as != which is not equal.....excepts for NULLS of course, in that case you need to use IS NULL or IS NOT NULL

SQLMenace
  • 132,095
  • 25
  • 206
  • 225
7

It means not equal to. The same as != seen in C style languages, as well as actionscript.

Kibbee
  • 65,369
  • 27
  • 142
  • 182
4

Yes, it's "not equal".

Jacob Mattison
  • 50,258
  • 9
  • 107
  • 126
4

"Does not equal"

Joshua Fox
  • 18,704
  • 23
  • 87
  • 147