Home › Forums › Problems and solutions in GDL › Graphical UI and parameters list › Double adding to parameter › Reply To: Double adding to parameter
February 7, 2018 at 19:43 #3806
Thanks, Barry , I thought it had to do with multiple executions. Strangely, it works correctly now when placed in the Master (adding and subtracting with the checkbox), but in the Parameter script the identical code always subtracts.
rrr = APPLICATION_QUERY ("parameter_script", "firstoccasion_in_progress", isFirstRun) IF isFirstRun THEN IF GLOB_MODPAR_NAME = 'bOption' THEN IF bOption THEN ZZYZX = ZZYZX + optionThk PARAMETERS ZZYZX = ZZYZX ENDIF IF NOT(bOption) THEN ZZYZX = ZZYZX - optionThk PARAMETERS ZZYZX = ZZYZX ENDIF ENDIF ENDIF
I’m working around it by using the MS, but it is odd IMO.