Conditions

TypoScript
[PIDinRootline=8]
inhalt.20=PHP_SCRIPT
inhalt.20.file=content.php
[end]

[globalVar = TSFE:id = 5]
page.10.template.file = fileadmin/template/referenzen.html
[end]

[treeLevel = 2]
    #header
page.10.marks.HEADER_IMAGE = HTML
page.10.marks.HEADER_IMAGE.value {
  data = field : media
  listNum = 0
  wrap = uploads/media/ |
}
[end]

[treeLevel = 1,2,3,4,5]
    #header
page.10.marks.HEADER_IMAGE = HTML
page.10.marks.HEADER_IMAGE.value {
  data = levelmedia : -1, slide
  listNum = 0
  wrap = uploads/media/ |
}
[end]

Typo3