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'");
}
}
{
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
Post a Comment