robopp Posted December 20, 2017 Share Posted December 20, 2017 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 More sharing options...
AzeoTech Posted December 20, 2017 Share Posted December 20, 2017 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.