Variable Value Component 'Set To' and 'Quick Sequence' Action


Recommended Posts

Hi,

I have a variable value component that has two actions - 'set to' and 'quick sequence'. The 'set to' action sets a global variable to a user defined value. The 'quick sequence' writes data out a serial bus. My issue is that if the user clicks the cancel button the quick sequence still runs. What's the best way to prevent the quick sequence from running if the user has clicked the cancel button?

Link to comment
Share on other sites

You would have to combine it into one Quick Sequence.  The script replacement for Set To is system.entryDialog():

private string datain = system.EntryDialog("My Prompt")
if (isempty(datain))
   return  // bail if hit cancel
endif
// reset of code here

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.