<we:ifEqual>
Since version: - | Requires endtag: yes
Description
This tag is used to compare different fields with each other and to display conditionally enclosed information.
Specific
Note that you cannot use this tag to compare <we:listview> fields. In such a situation use PHP code as follows:
<we:listview> <we:repeat> <?php if($we_doc->getElement("FieldnameOutsideOfListview") == $lv->f("FieldnameWithinListview")): ?> Content is equal.<br> <?php endif; ?> </we:repeat> </we:listview>
Attributes
name
Default value: - | since version: 1.5.2 | required: yes
Set this attribute to the name of one of the fields to be compared. If used within a <we:list>, <we:block>, <we:linklist> section or within a dynamically-included document, the name of a field within <we:list>, <we:block>, <we:linklist> or dynamically included webEdition documents must be used.
eqname
Default value: - | since version: 1.5.2 | required: no
Set this attribute to the name of one of the fields to be compared. If used within a <we:list>, <we:block>, <we:linklist> section or within a dynamically included document, the name used outside those elements must be chosen.
value
Default value: - | since version: 1.5.2 | required: no
Set this attribute in order to compare it to a value in the field defined in the attribute "name". In this case, the attribute "eqname" will be ignored.
Syntax
<we:ifEqual name="attribute" [eqname="attribute"] [value="attribute"]> ... </we:ifEqual>