Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Not equal not working?

The following expression works great:

if((Color= 'Red') OR (Color = 'Green') OR (Color = 'Green'),Color)

And I found somewhere that -= is NOT EQUAL.  However, the next code gives me an error:

if((Color -= 'Yellow') AND (Color -= 'Purple') AND (Color -= 'Orange'),Color)

The error is ") Expected"

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

Try:

if(Color <> 'Yellow' AND Color <> 'Purple' AND Color <> 'Orange',Color)


You do not need all the brackets

View solution in original post

4 Replies
robert_mika
Master III
Master III

Try:

if(Color <> 'Yellow' AND Color <> 'Purple' AND Color <> 'Orange',Color)


You do not need all the brackets

Anonymous
Not applicable
Author

not equal  -= this syntax has implication only inside set analysis modifiers

Sum({<Color -={'Yellow' , 'Purple','Orange'}>}quantity)


here you can not use <> as not equal symbol

jagan
Luminary Alumni
Luminary Alumni

Hi,

You can also try Match() for this

=If(Not Match(Color, 'Yellow', 'Purple', 'Orange'), Color)

Regards,

jagan.

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi

Instead of that u can also use " <> ".

Regards,

Nagarjuna