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

Hey @Abhilash_Yadav
State Machine Components

  1. State: Start
  • Action: Use Input Dialog to get number from user.
  • Output: Store in variable inputNumber (Int32)

Transition → CheckEvenOdd

  • Condition: True (always proceeds)

  1. State: CheckEvenOdd
  • Action: Use Assign:
isEven = inputNumber Mod 2 = 0

Transition → DisplayResult

  • Condition: True

  1. 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

:round_pushpin:4. Final State: End

  • No actions.

cheers