Inline if within variable value set to action


Recommended Posts

Is it possible to use an inline if to enter one of two possible values within a variable value component action?

So for example I have a variable value component that I use an inline if to select display of one of two values. I would like to be able to use the action side to enter the value as the same variable selected in the inline if statement used within the main expression.  I tried to use the set to selection and enter the iff in the action channel but it's not writing the expected result. 

Can I write a sequence that will take the output of the popup box and use the quick sequence action? Sort of like using the value part of a conversion? 

 

 

Link to comment
Share on other sites

I'm not quite sure what you are doing, but as an alternative to the Set To action you can use a quick sequence and the system.EntryDialog() function.  Something like:

private datain = system.EntryDialog("Enter some data:", minVal, maxVal)
if (!isempty(datain))
   outputVar = datain
endif

minVal and maxVal are optional.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share