Using IFS() to output different text in an automation template?

In the past, I’ve always strung multiple <<if: logical-expression>>OUTPUT THIS<>in a row to output different results. Is there a way to use IFS() or something of that nature to output different results instead? Such as:

<<IFS([Trainee Type Requesting] = “External”, “The store does not currently have a candidate in mind.”, [Trainee Type Requesting] = “External - Known Candidate”, "The store currently has a candidate in mind.”>>

It doesn’t seem to work, but Gemini believes very strongly that it should. For whatever that’s worth…

If you are using exactly above expression, then syntactically, it is missing a closing parenthesis at the end after the word"mind"

Please try

<<IFS([Trainee Type Requesting] = “External”, “The store does not currently have a candidate in mind.”, [Trainee Type Requesting] = “External - Known Candidate”, "The store currently has a candidate in mind.”)>>

4 Likes

Thanks! After looking at it very carefully, I figured out there was a number of small syntax issues. I had not used IFS() in a template before, and a colleague of mine had created it so I had a bit of trouble picking through it, but that’s on me. Thanks for the help!

3 Likes