Hey @Abhilash_Yadav
State Machine Components
- State:
Start
- Action: Use Input Dialog to get number from user.
- Output: Store in variable
inputNumber (Int32)
Transition → CheckEvenOdd
- Condition:
True(always proceeds)
- State:
CheckEvenOdd
- Action: Use
Assign:
isEven = inputNumber Mod 2 = 0
Transition → DisplayResult
- Condition:
True
- State:
DisplayResult
- Action: Use If activity:
If isEven Then
Message Box → "The number is EVEN."
Else
Message Box → "The number is ODD."
Transition → End
- Condition:
True
4. Final State: End
- No actions.
cheers