Quote:
Originally Posted by ownedbycats
Is it possible to use a module to set a variable?
Context: Mostly as curiosity/to figure out how the code works, I wanted to see if I could make a modification of this chain that, instead of raise chain.UserInterrupt when clicking 'no,' instead sets a specified variable to a specified value on clicking 'yes'. That could then be used in a chain modifier to enable a specific action.
Similar to the attached chain, but with a yes/no dialog in place of typing in 'yes' manually.
|
Code:
chain.set_chain_vars({'my_var_name': 'false'})