Closed CamDavidsonPilon closed 5 months ago
It's awkward to write a profile like: "change temperature the first time X happens". What if actions in the repeat block can have an optional break directive, which will exit any top-level repeat if the action executes?
repeat
break
type: repeat while: .... actions: - type: update if: ... break: True # maybe an expression?? options: ...
This would require us to keep track of future actions, so we can cancel them...
Solved with a when type
when
It's awkward to write a profile like: "change temperature the first time X happens". What if actions in the
repeat
block can have an optionalbreak
directive, which will exit any top-level repeat if the action executes?This would require us to keep track of future actions, so we can cancel them...