I would like to do a simple comparisons, such as the equivalent of:
if ($somevar === 'somestring')
Now, I have found some examples where this is done like this:
<f:if condition="{somevar} == 'somestring'">
...
There are a number of places in the TYPO3 core 9.5 as well, example.
But the official documentation tells us otherwise and that we must use a weird workaround based on arrays:
Strings at XX/YY are NOT allowed, however, for the time being, a string comparison can be achieved with comparing arrays
Comparisons with strings, like ...., are not possible with Fluid yet because of the complex implementation.
Whatever that means ...
In order to avoid asking why: What is the recommended way to do comparisons of strings and variables in TYPO3 9 and since when is this possible?