Forked Variable Demo

by Baz Cuda

Version 1 (July 9, 2019)

Download (16 downloads)

Demonstrates what Automate does when you use the same variable in separate forks. I built this as a learning tool for myself to answer some questions I had. I'm hoping others will find it useful and informative, too.

The result:
Each forked fiber gets its own independent copy of the variable.

Q: If separate forks converge into the same block in the flow, which copy of the variable will take precedence ?

A: Converging separate forks into the same block in a flow is just shorthand for duplicating that block in each fork. ie it's just code reuse. Which is why they all win.

Feel free to comment if you disagree with my interpretation of the results.

ps Only choose the first or second option at runtime. It will happily run if you select both, but the toast messages will fire at the same time so you'll only see one set.

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.