Skip to content
Menu

Free tutorial

If and Loop in Power Automate for desktop

Blizzard Entertainment called your office. They want you to design their next game.

Anders Jensen Automation & AI Instructor

Intro

Blizzard Entertainment called your office. They want you to design their next game.

What you will learn

  • Primarily:
    • Business logic:
      • If
      • Loop

Client Name

Bliizzard Entertainment

Process Name

GuessingGameLoopIf

Description

Create a game, that:
  • Assign a "secret" variable between 1-100
  • Take a user input (a number between 1-100)
  • Check if the number equals the secret variable
    • Yes: Write a congratulations message
    • No: Run the user input again and check again (continue over and over until the user has guessed the number)

Hints

  • Set variable: To assign the secret variable
  • Display input dialog: Take user input
  • If
    • User Input = Secret Number
      • Display message and congratulate the user
  • Loop
    • User Input <> Secret Number
      • Display input dialog and ask the user again
      • But use an If and Else if to give the user a hint, if the number is too high or too low
  • Advanced
    • Try to make the loop only run 5 guesses and then end no matter what (hint: use a counter variable and change the loop condition)

Video Guide

More tutorials

  • Microsoft Power Automate Desktop

    The complete lesson series for Microsoft Power Automate for desktop: from installation and your first flow to variables, Excel, browsers, file handling, and…

    Read more →
  • Power Automate Desktop Beginners Course [2022]

    Free tutorial: Power Automate Desktop Beginners Course [2022]. Video walkthrough, exercise files, hints, and solutions.

    Read more →
  • Excel in Power Automate for Desktop

    Sespi Cola want to automate how their salespersons are performing.

    Read more →