Issue Bug Closed

#91259New symfony expression syntax provides no replacement for [else] and does not document this removal either

Stefanos Karasavvidis 05/01/20, 17:02 updated 02/23/21, 13:13

Description

I’m on TYPO3 10.4.1 and try to use a typoscript condition with ELSE part. The following is a sample to the default typoscript setup section of a new installation

page.20 = TEXT
[{$someconstant} > 50]
    page.20.value = IN FIRST
[ELSE]
    page.20.value = IN ELSE
[END]

If someconstant is indeed > 50, everything is fine. If someconstant is less than 50, the condition works, but in the TYPO3 log I get

Expression could not be parsed. - {"expression":"ELSE"}

which is confusing as it suggests that something is wrong

Reviews 2