Conditions within a Show Message object

0
Hi, I am creating a microflow where I want to show two different messages depending on the value of a variable. Can I do this using just one Show Message object? Example: If $Variable > 1 then "cars" else "car" Thanks,
asked
1 answers
4

Hi Leonardo,

You can add this expression as a parameter in the show message dialog. Add the following expression as a parameter:

if $Variable > 1 then
    'Cars'
else
    'Car'

And then use the value in the 'index' column of this parameter in the message template, for example: {1}

answered