Reply To: GLOB_​​​MODPAR_​​​NAME and arrays

Home Forums Problems and solutions in GDL Parameter connections GLOB_​MODPAR_​NAME and arrays Reply To: GLOB_​​MODPAR_​​NAME and arrays

#2123
James Murray
Participant

I have an array of XYZ points, where either X or Y must be zero. So if the user puts a value in X, it would be nice to have the Y automatically zero out, and vice versa. For non array parameters:

IF GLOB_MODPAR_NAME='xParam' & ABS(xParam-0)>eps THEN PARAMETERS yParam=0
IF GLOB_MODPAR_NAME='yParam' & ABS(yParam-0)>eps THEN PARAMETERS xParam=0

James M