Forum Discussion
StoryofData
3 years agoHelper III
M Launguage If Statement
How do I add another condition to this?
if [EmplId] <> ""
then
[IemCaseNumber]&" | "&[EmplId]&" | "&[IemParticipantName]
else ""
I need it to do a custom column of [IemCaseNumber]&" | "&[EmplId]&" | "&[IemParticipantName]
IF [EmplId] <> ""
[IemCity] <> "Not Disclosed" or "Not Applicable"
if conditions are not met, then the cell should be blank
2 Replies
- vicky_Super User
you can use "else if" in M.
- StoryofDataHelper III
think I got it!
if [EmplId] = ""
then ""else if
[IemCity] = "Not Applicable"
or [IemCity] = "Not Disclosed"
then
""else
[IemCaseNumber]&" | "&[EmplId]&" | "&[IemParticipantName]