Can you please give example on statemachine either even or odd?

Hi @Abhilash_Yadav

Go through the docs below which contains an example

For Even or Odd you can just change the flow this way

1. Variables (in Main.xaml):

  • number: Int32 (set this to a number like 5 in the Start state)

2. Start State (State: Start)

  • Assign number = 5 (or use Input Dialog to get user input)
  • Transition: → CheckNumber

3. CheckNumber State

  • No activities, only transitions:
    • Condition: number Mod 2 = 0 → to Even
    • Condition: number Mod 2 <> 0 → to Odd

4. Even State

  • Activity: Message Box"The number is Even"
  • Transition to End

5. Odd State

  • Activity: Message Box"The number is Odd"
  • Transition to End

Hope this helps :innocent: