Forum Discussion

StoryofData's avatar
StoryofData
Helper III
3 years ago

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

    • StoryofData's avatar
      StoryofData
      Helper III

      think I got it!

      if [EmplId] = ""
      then ""

      else if
      [IemCity] = "Not Applicable"
      or [IemCity] = "Not Disclosed"
      then
      ""

      else
      [IemCaseNumber]&" | "&[EmplId]&" | "&[IemParticipantName]