987
Views
5
Comments
Solved
Is Not Null
Question

is there anyway to make a condition true by using not equal to (!=) ?

2026-03-09 12-26-51
Fábio Fantato
 
MVP
Solution

!= is not a valid operator in OutSystems, but you can use <> instead of !=

2018-01-19 18-59-44
Michael Henderson

Fábio Fantato wrote:

!= is not a valid operator in OutSystems, but you can use <> instead of !=


what does <> do? I can't find any docs on it. 

2016-04-22 00-29-45
Nuno Reis
 
MVP

Michael Henderson wrote:

Fábio Fantato wrote:

!= is not a valid operator in OutSystems, but you can use <> instead of !=


what does <> do? I can't find any docs on it. 

It means "different" just like !=. It depends on the language and in OS it is <> that we use.


You can also use the prefix "not" or, because this is an if, just switch the branches.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Michael,

Like Fábio already said, the "not equal" operator is "<>" in OutSystems (that is, a "<" followed by a ">"). This may seem strange for someone only knowing curly braces languages like C, C++, C#, Java or JavaScript, but it has a long history, and languages like Pascal and SQL also use "<>". Note that OutSystems uses other operators also taken from Pascal/SQL, like "and" and "or" instead of "&&" and "||", "not" instead of "!" etc.

As for Nuno's reply, never ever use If(condition, True, False). It's ugly and superfluous. Just use condition by itself (as in Nuno's last example).

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.