
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try:
if(Color <> 'Yellow' AND Color <> 'Purple' AND Color <> 'Orange',Color)
You do not need all the brackets


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try:
if(Color <> 'Yellow' AND Color <> 'Purple' AND Color <> 'Orange',Color)
You do not need all the brackets

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You can also try Match() for this
=If(Not Match(Color, 'Yellow', 'Purple', 'Orange'), Color)
Regards,
jagan.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Instead of that u can also use " <> ".
Regards,
Nagarjuna
