web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Like Operator in AX

Pooja Karki Profile Picture Pooja Karki 3,039

Today I will demonstrate you that how to use Like Operator in AX.

static void RelationalOperatorLike(Args _args)
{
str carBrand = "Toyota";
;
// use the * wildcard for zero or more characters
if (carBrand like "Toy*")
{
info ("The car brand starts with 'Toy'");
}
// use the ? wildcard for one character
if (carBrand like "Toy??a")
{
info ("The car brand starts with 'Toy' and the last character is 'a'");
}
}

Comments

*This post is locked for comments