Forum Discussion
guna_knp
2 years agoRegular Visitor
Unable to implement IF and Text contains in m Query
HI, I am trying to implement below M query, however gets the error message "Token 'Then' expected", can somebody help me here if Text.Contains([Manager],"On Leave") AND [Grandparent]="" THEN...
- 2 years ago
guna_knp M code is case sensitive. For your case, you have to use all lower case for "AND", "THEN", "ELSE".
Check here for list of operators
Hope this help.
If this answered your question, please accept this as a solution!!
shafiz_p
2 years agoSuper User
guna_knp M code is case sensitive. For your case, you have to use all lower case for "AND", "THEN", "ELSE".
Check here for list of operators
Hope this help.
If this answered your question, please accept this as a solution!!