Hi,
Why does this code return false? Square brackets is the problem but why?
if("[test]" like “[test]”)
info(“true”);
else
info(“false”);
Returns true with other types of brackets:
if("(test)" like “(test)”)
info(“true”);
else
info(“false”);
Which version of AX it is? And what’s the point of using like without wildcards?
AX2012, wildcards are actually used in the business case but i removed them from the code sample. The result is the same with wildcards.
Is it a bug or do the squre brackets have some special meaning?
They might. I’ve never used code like this, therefore I don’t know how it behaves.
If you explain your particular case, I’ll tell you how I would implement it.