Cicode Programming Reference > Cicode Function Categories > Trend Functions Introduction > TrnGetGatedValue

TrnGetGatedValue

Returns the internally stored value for <GATED>. If the internally stored value changes in the future, you will not need to modify your Cicode, as this function will return the correct value.

Syntax

TrnGetGatedValue()

Return Value

The internally stored value for <GATED>.

Related Functions

TrnGetInvalidValue, TrnIsValidValue

Example

REAL MyTrendValue;
IF MyTrendValue = TrnGetGatedValue() THEN
Prompt ("This value is <GATED>")
ELSE
IF MyTrendValue = TrnGetInvalidValue() THEN
Prompt("This value is <TRN_NO_VALUES>")
ELSE
Prompt("Trend value is = " + RealToStr(MyTrendValue, 10, 1));
END
END

See Also

Trend Functions