Anyone have any issues in 4R8 with comparisons?
For the life of me, I can’t figure out why a basic comparison is failing. My XYZ Size is 2, and this code should be printing “It’s a match” and it’s not for some reason.
[VarSet, gTempNumber, 0]
[VarSet, gTempNumber, [IGet, Tool:Size:XYZ Size]]
[Note, #gTempNumber]
[If, #gTempNumber == 2,
[Note, [StrMerge, "Its a match: ", #gTempNumber]]
,
[Note, [StrMerge, "Not a match: ", #gTempNumber]]
]
The only workaround I can figure out is this, but surely this can’t be the solution…
[If, [StrMerge, “”, #gTempNumber] == [StrMerge, “”, 2],