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 Automate - Building Flows
Answered

If Statement - MS Forms

(0) ShareShare
ReportReport
Posted on by 56

Hi there

 

I'm trying to do an if formula to say, for example, if q1 from the microsoft form is 'yes', then put the number 5 in this box, and if no, put 0. 

 

Does anyone know the best way to do this? 

I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,278 Super User 2025 Season 2 on at
    Re: If Statement - MS Forms

    @smather  One way to do it is to add an integer variable then use a Switch control to set the variable to a number depending on the answer to the question in the form. For example:

    0-Form.png

     

     

    1-Flow.png

     

    2-Flow.png

     

    3a-Flow.png

     

    3b-Flow.png

     

    3c-Flow.png

     

    4-Flow.png

     

    weighting.gif

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • smather Profile Picture
    56 on at
    Re: If Statement - MS Forms

    That's perfect @RobElliott  -- sorry to bother again, but do you know how to add up these variables too? 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard