Please teach me about working variable in Action Block

bbfantasy

Member
Hi All
I still dont understand about working variable in Action Block.
Anyone can teach me and make an example about working variable of the simple action block.
Thanks for your help
 

RSF

Well-known member
It's a way to control the visibilitly/scope of the variables.
Working variables are a way to have variables used by an Action Block, but not visible outside the Action Block.
Prior to the new working variables feature, any variables used in an Action Block were visible in calls to the Action Block. The problem with that is that it cluttered up the Action Block call -- the Action Block might actually only return a single value, but all of its internal working variables would always be listed, e.g.
Screenshot 2022-11-22 3.01.25 PM.png

Now you can make those variables visible only within the Action Block. It makes calling the Action Block less messy.
 

bbfantasy

Member
It's a way to control the visibilitly/scope of the variables.
Working variables are a way to have variables used by an Action Block, but not visible outside the Action Block.
Prior to the new working variables feature, any variables used in an Action Block were visible in calls to the Action Block. The problem with that is that it cluttered up the Action Block call -- the Action Block might actually only return a single value, but all of its internal working variables would always be listed, e.g.
View attachment 3975

Now you can make those variables visible only within the Action Block. It makes calling the Action Block less messy.
Thank you so much. I understood more clearly
 
Top