web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple Ifs Expressio...
Power Automate
Unanswered

Multiple Ifs Expression Error

(0) ShareShare
ReportReport
Posted on by 64

Hi 

 

I created a nested ifs expression in the Apply Each but some went through some didn't.

I received this error

Unable to process template language expressions in action 'Compose_-_priority_name' inputs at line '0' and column '0': 'The template language function 'if' expects three parameter: the condition to test as the first parameter, the value to return if the condition is true as the second parameter, and the value to return if the condition is false as the third parameter. The function was invoked with '2' parameter(s). Please see https://aka.ms/logicexpressions#if for usage details.'.

Here is the expression 

if(equals(outputs('Compose_-_priority'),1),'Urgent',
if(equals(outputs('Compose_-_priority'),3),'Important',
if(equals(outputs('Compose_-_priority'),5),'Medium',
if(equals(outputs('Compose_-_priority'),9),'Low'
))))

I don't understand what am I doing wrong?

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at
    Re: Multiple Ifs Expression Error

    Hey @Spaceballs 

     

    The if expression expects 3 parameters. So the default syntax of if in Power Automate is like:

     

    if(condition, true, false)

     

    In yours you are doing everything right till the 3rd if, in the 4th if you are only sending 2 parameters. Try the following:

     

    if(equals(outputs('Compose_-_priority'),1),'Urgent',
    if(equals(outputs('Compose_-_priority'),3),'Important',
    if(equals(outputs('Compose_-_priority'),5),'Medium','Low'
    )))

     

    I hope this helps 🙂

  • Spaceballs Profile Picture
    64 on at
    Re: Multiple Ifs Expression Error

    @Sundeep_Malik thanks a lot 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard