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 like5in 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→ toEven - Condition:
number Mod 2 <> 0→ toOdd
- Condition:
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 ![]()