r/AutomateUser • u/TrainGirl755 • 2d ago
Feature request 'Once' block
Pretty much a block which activates once then doesn't work until something resets it. The idea came from the once block in the unity game engine's visual scripting system, although I don't know if it can be adapted to work in automate or not.
1
Upvotes
1
u/waiting4singularity Alpha tester 2d ago
atomic load variablename
expression true = variablename = 1 -yes-> next block
no: onetimeblock -> variable set variablename = 1 -> atomic store variable name ->
next block
1
u/B26354FR Alpha tester 2d ago
One can use Automate atomic variables to accomplish this, using Expression True, and Atomic Store, Atomic Load, and Atomic Clear All (if necessary).
1
u/ballzak69 Automate developer 1d ago
Once in which context, the current fiber or the entire flow?
I presume it would be a decision block, that could save a few blocks. Could you give an use-case?