Number of Components (CL and CLP)
Two tags enable processing of the number of components found by traveling a link or using a query, [CL] and [CLP].
In that the processing of tags [CL] and [CLP] is faster than consultation of components by tag [C], it can be advantageous to use these tags for adding text conditioned, for example, by the number of elements found.
Tag [CL] enables testing on the number of components (see Conditioning HTML Tag Editing).
Example:
|
[CL=Message if cardinal >1]Messages : [/CL]
|
The text "Messages :" is edited when there is more than one message.
|
The [CLP] tag allows you to obtain information on the number of components. It is possible to carry out calculations on the result obtained using this tag.
|
[C="Link or query"] text [CLP="ordinal"/][/C]
|
Row of object reached
|
Example:
|
[CLP="Cardinal-Ordinal+1"]
|
Objects are presented starting with the last, with indication of their row ("number 3, number 2, number 1 ยป)
|