Conditioning HTML Tag Editing
 
In the edition tags it is possible to indicate execution conditions: when the condition is satisfied, the tags are resolved and appear in the final result; if not, they are ignored.
[C="Operation" if="last"]</Table><br>[/C]
This condition enables closing of a table after the final operation found.
The conditions are introduced in the tag by "if=". They are placed between two double-apostrophes (").
Comparisons are carried out using operators "=", "<>", "<", ">". The negative operator " ! " can be placed before these operators.
The elements that can be tested are:
 
Example of use
[CL="org-unit"]
[If="empty"]No org-unit[/If]
[If="Cardinal=1"]Org-Unit : [/If]
[If="Cardinal>1"]Org-Units : <br>[/If]
[/CL]
[C=Org-Unit]
[CP=name/]<br>
[/C]
With these conditions, "Org-Unit :" followed by the name of the org-unit appears on one line when there is only one org-unit. When there are several org-units, the text is "Org-Units :", followed by a line break and the names of the org-units. When there are no org-units, the text “No Org-Unit” appears.
 
Another example
[CL="Project" if="Cardinal>0"]<h2>Projects of organizational process:</H2>[/CL]
The text "Projects of organizational process" will appear if there is at least one project linked to the organizational process.
 
Using the tag [If]
Tag [If] enables creation of repetitions of a condition without having to rewrite the tag n times.
Example
 
[P="Property"]
[If="value=Value1"]Text 1[/If]
[If="Value=Value2"]Text 2[/If]
[/P]
Example
[C="Link or query"]
[If="First"] Text 1 [CP=name/][/If]
[If="!First and !Last"]Text 2[CP=name/][/If]
[If="Last"]Text 3[CP=name/][/If]
[/C]
*The "Else" tag does not exist.