Relational operators in X++ Programming Language

Rumman Ansari   Software Engineer   2023-08-23   638 Share
☰ Table of Contents

Table of Content:


Relational operators in X++ Programming Language

Relational operators are used in X++ to compare the values between variable values of similar types. Some limitations with complex data types such as GUIDs apply.

Operator Description
Like This operator is exclusively used in SQL statements and returns true if the criteria are found within the second value. For example, select a table where a field such as ‘12*’ returns all rows from a table where the field values start with 12.
== Returns true if the values are equal.
!= Returns true if the first value is not equal to the second value.
>= Returns true if the first value is greater than or equal to the second value.
<= Returns true if the first value is less than or equal to the second value.
> Returns true if the first value is greater than the second value.
< Returns true if the first value is less than the second value.
&& Returns true if the first and second value are true.
|| Returns true if the first or second value is true.
! Returns true if the value is false, and it returns false if the value is true.