So I was playing around with Neos.Fusion:Case a little and found some weird-ish behavior.
Let’s assume this is our Fusion-Case:
someVariable = Neos.Fusion:Case {
10 {
condition = ${true}
renderer = ${'something'}
}
50 {
condition = ${true}
renderer = ${'anything'}
}
}
If I change the first name to 10, 100, 1 or a variation thereof, it doesnt display the first case, but goes straight to the second. Quotes (’, ") don’t change this behavior.
False/false/FALSE works. 0, 00,…, works as well as when I add some other number or letter to the first key.
Now I change the name of the first key to 50, and the second to something with a letter in it like ‘name’, it will also display the behavior that it will only display the second case.
So, my question is why? What happens here in the background?
Also I think that the API-Reference (Fusion Reference — Neos CMS dev-master documentation) is quite insufficient. It tells me that key should be a matcher definition and that Neos.Fusion:Matcher is an internal object type. But at least as far as I saw, there is no documentation regarding Neos.Fusion:Matcher where I can look it up easily.
There is documentation about Neos.Fusion:Match, but this also only tells me that the subject to match should be a string which doesn’t explain the behavior above.