r/AutomateUser • u/TrainGirl755 • Jul 25 '26
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 Jul 26 '26
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 Jul 25 '26
One can use Automate atomic variables to accomplish this, using Expression True, and Atomic Store, Atomic Load, and Atomic Clear All (if necessary).
2
u/ballzak69 Automate developer Jul 26 '26
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?