Project

General

Profile

Actions

Bug #91259

closed

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

Added by Stefanos Karasavvidis almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2020-05-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

Actions

Also available in: Atom PDF