If condition in the body

Hey Everyone Im trying to get rid of my decision state of Process_name.length > 0 and use one slack message activity. How would I write "if Process_name.length>0 then write check failed + process name else green light successful?

Take one assign activity create a variable & call that variable name in value give the below details,
Process_name.length

Then In if condition write the condition as Value1 > 0,it will work

Im trying to add if condition in the body of the email