%TEX

<< Click to Display Table of Contents >>

Navigation:  Reference > Functions >

%TEX

This function assigns text to one or more table cells if their values fall within ranges specified but be sure to read the important notes below.

Form of use:

MT table[(part-id)] = %TEX(wconstant,wconstant,'text')

The two wconstants specify the lower and upper limits respectively of the range, and the third must be text.

The text must not contain any delimiters.

This function may not be used on tables where format RBA is set.

IMPORTANT: the putdown table must be a double precision (format DBL) table.

IMPORTANT: tables modified by this function should not be tested or modified again before printing. You cannot test a cell to see if a text value has been assigned by %TEX. If tables are likely to be used as an ITF to a later CL script you are advised to put the %TEX commands in a separate CL script and use the tables without the %TEX as the ITF.

IMPORTANT: you cannot use CP (Compile and Print) with %TEX.

The values are replaced in situ, you cannot specify a new table for the changed figures.

Examples of TEX function:

mt #t1=%tex(100.0,999.0,'too big'),

mt #t2(c3,r2-$)=%tex($low,$high,'good'),