ExpressionError: invalid syntax

The rendering view ends with ExpressionError: invalid syntax. I use following expression tal:define="result python: test(is_any, [], [1])". Is a change in Plone 5? This was working in Plone 3.

Use

condition and trueexpr or falseexpr

Or

trueexpr if condition else falseexpr

As you would do it in Python

-aj

1 Like