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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

If Statement

(0) ShareShare
ReportReport
Posted on by 35

Hi All

I'm trying in Power Automate to use the IF statement to check is a output value is 1, if it equals 1 then I need text 'Job Complete' otherwise 'Job in Progress'.  See command below, please can you identify why this comes up as a Expression is Invalid

 

if(outputs('Compose_Remove_Brackets_From_JobCompleted')=1,'Job Complete','Job in Progress')
 
Thanks in advance
Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @TheJockey67 

     

    Expression should be 

     

    if(equals(outputs('Compose_Remove_Brackets_From_JobCompleted'),1),'Job Complete','Job in Progress')

     

    You can refer to the video at - https://www.youtube.com/watch?v=1T1sBPpVOj0 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • TheJockey67 Profile Picture
    35 on at

    Hi @CFernandes 

     

    Flow is retrurning a error when I try to save

     

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The circular dependency detected in template language expressions.'.'.

     

    Can you help?

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @TheJockey67 Can you post your Expression?  and a screenshot of your Flow?

  • TheJockey67 Profile Picture
    35 on at

    Screenshot 2024-02-09 at 09.27.12.png

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @TheJockey67 - Just did a test - Please add a compose and then set your variable... I think you are trying to reference and set the same variable. 

     

    if(equals(outputs('Compose_Remove_Brackets_From_JobCompleted'),1),'Job Complete','Job in Progress')
     
    CFernandes_0-1707471579572.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     
     
  • TheJockey67 Profile Picture
    35 on at

    @CFernandes  not too sure where I should add the compose?

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @TheJockey67 I assume you are setting a variable? If yes, instead of setting the Variable Just use Compose 🙂 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • TheJockey67 Profile Picture
    35 on at

    @CFernandes no I'm setting a Variable, I have attached the flow, not sure if you can view this, but hoping you can

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @TheJockey67 - No luck with Importing.... getting an Error.. 

     

    CFernandes_0-1707474166190.png

     

     

    Can you please confirm the output - Compose_Remove_Brackets_From_JobCompleted is 1 or 0 ? 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • TheJockey67 Profile Picture
    35 on at

    @CFernandes  Output will be either 1 or 0

     

    If it equals 1 I need the Job Complete text otherwise it equals 0 so need the text Job in Progress

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard