KTEST (for templates)

Type

Tag

Explanation

Inserts a condition into the template. Used by AutoTemplate_RecordCount and AutoTemplate_TestRecordsetField components. There is no ELSE option for KTEST.

Format for AutoTemplate_RecordCount:

<KTEST__recordset..anyrecords>
...
</KTEST__recordset..anyrecords>

also

<KTEST__recordset..norecords>
...
</KTEST__recordset..norecords>

Format for AutoTemplate_TestRecordsetField

<KTEST__recordset.field="" testexprstart testexprend [movefirst]>
...
</KTEST__recordset.field="">

movefirst is an optional directive to move to the first record of the recordset.

Example

<KTEST__rstCalculatePayment.AmountToPay="" testexprend=">0" movefirst="1">
...
</KTEST__rstCalculatePayment.AmountToPay="">