0

Conditional Target Order of Execution

How does a set of conditional targets behave?

When one condition is met - does the system stop processing the rest of the condition questions?

I want to build a conditional target as follows:

  • if CurrentState = 1 do X1
  • If CurrentState = 0 do X0
  • If CurrentState is 2 or 3 the do XOther

Hers is what I did:

So based on this, will the third item be executed ONLY if current state is not 0 or 1?

Is there a better way of doing this?

 

Thanks,

Jack

1 comment

  • 0
    Avatar
    Shaun

    Treat this like a nested else if. When you match one you are done processing and the transition is undertaken. The Not Equals condition serves no purpose in your logic as either of the 2 above would be processed first.

    For you 3rd criteria you could go wide and use:

    if CurrentState > 1 XOther 

    Or, tighten it up and use a range by making use of the between comparison.

    Equally, you could just not have a condition and use the default transition from your state as the 2 conditional's would not match and the transition based on your event would be processes. Conditional triggers only interrupt that transition if met. 

Please sign in to leave a comment.