Extending command groups

Lets say I make a command group with two commands:


in commandA, commandA executes commandC. commandA finishes before commandC does. following me? :stuck_out_tongue:

now heres the thing. i want commandC to finish executing before commandB starts. So the flow of events is this

commandA -> commandC (if certain conditions are met) -> commandB

i dont want to put commandC in the commandgroup because commandC could be looped over and over again

You could call “isFinished()” in CommandC at the end of the execute method…

I dont follow

Oh, I’m saying you could do that to prevent a loop.

I have no idea what your talking about. I dont want to prevent any loop?

commandC goes to ->
commandD goes to ->
commandE checks for conditions, if false than repeat commandc if true than go to commandB->

except my group has about 50 commands in it