Saving "Options Dialog" choice to a variable?

DeDoktor

New member
Is there a way to save the option a user picks to a variable when using the options dialog action?

Use Case:
Prompt user with Options Dialog.
Save selected option to variable.
Activate an action block using the variable as input.

I searched the forum but got no results. If this is not possible I will add this to the feature request forum.
 

FrameXX

Well-known member
Use set variable action for your boolean variable and sect uer prompt. This will let user select from true or false.
 

RSF

Well-known member
You can actually pass a variable into an Action Block directly from the Options Dialog action:
  1. Define an action block -- including an input parameter
  2. Back in your macro's Option Dialog action, select that Action Block to be executed when a user selects that option, and configure the block's input parameter value
  3. That input variable will be set to that value when the Action Block starts executing, and your Action Block actions can use it in constraints, IF statements, etc. etc.
This works string, integer, and other variable types.

Screenshot 2022-06-03 2.21.12 PM.png

Screenshot 2022-06-03 2.22.39 PM.png
 
Top