Reply To: Double adding to parameter

#3806
James Murray
Participant

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.

James M