Function Updated 17 Oct 2026
areNotEqual(value1, value2)
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
value1objectrequiredValue to compare with value2.
value2objectrequiredValue to compare with value1.
Returns
true if not equal, false if equal. Also false if not called with exactly two arguments.
Example
Mixed HTML (or any text file) with inline JavaScript between hash signs.
#docly.areNotEqual("test", "asdf")#The template above produces this output:
trueNormal JavaScript, 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
*/The JavaScript above produces this output:
false
true