Wählen Sie Ihre Sprache:

<we:ifVar>

Since version: - | Requires endtag: yes

Description

Content enclosed by this tag is only displayed if the content of the variable named in the attribute "name" is equal to the value in attribute "match".

Attributes

name

Default value: - | since version: - | required: yes

Set this attribute to the name of the variable to be used in the comparison.


match

Default value: - | since version: - | required: yes

Set this attribute to the value with which the variable in "name" will be compared.


type

Default value: - | since version: - | required: no

Set this attribute to the type of variable which is used for the comparison. Valid parameters are: "global" for global variables, "request" for request variables transfered via "put" or "get", and "document" for document variables. (Document variables are normally variables entered via a we:input field.) Set this value to "sessionfield" to compare to a sessionvariable of the customer management module.

Allowed values:

  • global
  • request
  • document
  • property
  • session
  • sessionfield

doc

Default value: - | since version: - | required: no

Setting this atribute to "self" will cause webEdition to refer to the current webEdition document. If it was included using <we:include> then it refers to the included document. Setting this attribute to "top" will refer to the main current webEdition document even if the tag was in an included document.

Allowed values:

  • self
  • top

Syntax

<we:ifVar name="attribute" match="attribute" [type="global|request|document|property|session|sessionfield"] [doc="self|top"]> ... </we:ifVar>