Not equal: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | 1 | \<\> | |
| 4 | - | ||
| 5 | - | ||
| 6 | 2 | ||
| 7 | 3 | The not equal bigramm `<>` (consisting of [[Less than|<, the less than symbol]], followed by [[Greater than|>, the greater than symbol]]) is used to compare two values. The binary operator evaluates to [[false and true|true]], if both values differ from each other. | |
| 8 | 4 | ||
| 9 | 5 | ## implicit definition | |
| 10 | 6 | ||
| 11 | 7 | Note, when the [[Equal|equal operator]] has been overloaded for a custom type, but unequal does not have its own (explicit) definition, [[FPC]] will assume `x <> y` is the same as `not (x = y)`. | |
| 12 | 8 | ||
| 13 | 9 | ## see also | |
| 14 | 10 | ||
| 15 | 11 | - [[symmetric difference|symmetric difference of sets ><]] | |
| 16 | 12 | ||
| 17 | 13 | --- | |
| 18 | 14 | *From the Free Pascal wiki, page "Not equal", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 19 | 15 | Category: Symbols |
