inside limits
if (X >= LimLo) && (X <= LimHi)
mask = 1;
else mask = 0;
at either limit
if (X == LimLo) || (X == LimHi)
mask = 1;
else mask = 0;
equal to a single limit
if (X == LimLo)
mask = 1;
else mask = 0;
inside database limits
if (X >= Dpnt->PhyMin) && (X <= Dpnt->PhyMax)
mask = 1;
else mask = 0;
mask = X;
- most useful w/ Ldisp datatype
if (DATA.status = 0)
mask = 0;
else mask = 1;
if (X < LimLo)
else mask = 1;
mask = 1;
else if (X > LimHi)
mask = 2;
else mask = 0;
if (X < Dpnt->PhyMin)
mask = 1;
else if (X > Dpnt->PhyMax)
mask = 2;
else mask = 0;
NOTE: This test is smart enough to recognize Lin and NLin datatypes and process them correctly even though the rule is simplified in the description given here.