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 / If Statement - MS Forms
Power Automate
Unanswered

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? 

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,313 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

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