Works great for me:
Array.prototype.diff = function(a) { return this.filter(function(i) {return a.indexOf(i) < 0;}); }; const dif = [[TABLE1]].diff([[TABLE2]]); [[DIF]] = (dif);strings comparing
-
Hi everyone.
I want to ask you which command is suitable for comparing 2 strings and what its syntax is.
example:
I have 2 string variables A and B, both containing "Pippo"
how do I use the IF command to have an equality comparison?
Thanks in advance -
@samuelao75
You will just need to check the variables against each other.[[STRING_A]] = "Apple" [[STRING_B]] = "Apple" if ([[STRING_A]] === [[STRING_B]]) log("True")