[globalVar = GP:tx_news_pi1|news > 0] 等同于 symfony 表达式语言?

Equivalent of [globalVar = GP:tx_news_pi1|news > 0] with symfony expression language?

我如何使用 typoscript 中新集成的 symfony 表达式语言检查页面是否为单一视图(即新闻)?我正在搜索相当于:

[globalVar = GP:tx_news_pi1|news > 0]

找到了:

[request.getQueryParams()['tx_news_pi1']['news'] > 0]
[traverse(request.getQueryParams(), 'tx_news_pi/news') > 0]
# This condition matches if current query parameters have tx_news_pi[news] set to a value greater than zero
[END]

(https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Feature-85829-ImplementSymfonyExpressionLanguageForTypoScriptConditions.html#general-usage)