I have the following snippet of code that is part of a for loop used to generate a series of variability charts in a V List Box.
For certain parameters that I am plotting where i=1or2or7or8 I want the chart minimum to be 0. I have tried to use the following but it seems to ignore the if statement.
Dispatch(
{},
"2",
ScaleBox,
if(
i(1|2|7|8), ({Min( 0 ), Add Ref Line( 0, Dotted, "Black", "", 2 )}),
({Add Ref Line( 0, Dotted, "Black", "", 2 )})
)
),
you need to change the structure of you IF() function to:
If(i==2|i==2|i==7|i==8,