Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Invalid if expression

(0) ShareShare
ReportReport
Posted on by 57

Hello,

I have the following expression, but I get an error message that this is invalid:

if(true(isInt(outputs('Compose'))),200,400)
What I want to do is check if the Output of the Compose action is an integer and if yes, then set a variable with the value '200' else '400'.
 
asynadinou_0-1711978187934.png

 

Can anybody help?
Best regards,
Katerina
  • asynadinou Profile Picture
    57 on at
    Re: Invalid if expression

    Perfect! Thanks a lot.

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Invalid if expression

    Hi @asynadinou ,

    Please try this expression:

    if(isInt(outputs('Compose')),200,400)

    Best Regards,

    Sunshine Gu

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1