Home › Forums › Problems and solutions in GDL › Graphical UI and parameters list › UI button – parameters › Reply To: UI button – parameters
August 4, 2017 at 02:26
#3444
Participant
Hi
Is the problem that parameter script is running more than once – therefore “n = n + 1” is not working as expected?
If so you have two possible solutions
1. Under details ‘Compatibility Options’ check the box ‘Run parameter script only once’
2. You could also use “APPLICATION_QUERY” to also make sure it only runs once
n = APPLICATION_QUERY (“parameter_script”, “firstoccasion_in_progress”, isFirstRun)
if isFirstRun then
// do stuff
endif