New Zealand
Asked — Edited

Comparing String Variables

Can't seem to find an example of string variables being compared in EZ-Script

$A="Apple" $B="Apple" if ($A=$B) say ("They're the same")

if ($A$B) say ("They're not the same")

Am I looking at this the wrong way or what?


Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!


I would say what you use for not equal are the less-than and greater-than signs together. But, the rest looks good. It doesn't work for me either.

when i tried to put the symbols for not equal, the community forum board would not let me enter it into this post. confused

I guess we need videos for String variables and also emotions.


try $A==$B that's usually the syntax for comparison

and $A!=$B for not equal to

these may not have been added yet

New Zealand

Issue resolved with latest update.

And the informative Syntax statement that pops up when we get it wrong is very insightful!

Thanks DJ Sures.