Conditions

General syntax

Each condition is encapsulated by square brackets. For a list of available conditions see below.

“[ELSE]” is available as else operator. It is a condition, which will return TRUE, if the previous condition returned FALSE.

Each condition block is ended with “[GLOBAL]”.

Example:

[browser = msie]
  # TypoScript Code for users of Internet Explorer.
[ELSE]
  # TypoScript Code for users of other browsers.
[GLOBAL]

General notes

Hint

For full explanations about conditions, especially about condition syntax, please refer to the according chapter in “TYPO3 Explained”.