areNotEqual(value1, value2) Last updated: 17. Oct 2026
Checks that two values are not equal. The exact opposite of areEqual: the same .NET comparison is used, so areNotEqual(null, null) is false.
Parameters
| Name | Type | Description |
|---|---|---|
| value1 | object | Value to compare with value2. |
| value2 | object | Value to compare with value1. |
Returns
true if not equal, false if equal. Also false if not called with exactly two arguments.
Example
Code example (#JS)
#JS is mixed HTML (or other text file) with inline JavaScript with # starting and ending each inline statement.#docly.areNotEqual("test", "asdf")# Output
The #JS code above produces the output shown below:true Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.write(docly.areNotEqual("abc", "abc"));
write("\n");
write(docly.areNotEqual(1, 2));
/* Expected output:
false
true
*/ Output
The JS code above produces the output shown below:false
true