I would like to output the attribute e.g. «id» only as HTML-Tag in sourceCode, if there is a value (string) in the nodeType Attribute.
Unfortunately, if I don’t set a string before and delete this later, there appears a tag «id» in Source without value:
First [div] is without id-set before, second is set and after delete.
It was a missunderstood of mine. I thought «@if.condition = false» would delete the property.
Now, I see the meaning of «to prevent evaluation of the value» in the docs more clear – but still not in details… what remains?
Can’t find the @…-Logic in Neos-Code or PHP docs; there only for comments. Maybe there I would find something like php’s unset().
Would property «id» delted with «>» the angular (angle) bracket to the right?
(The bracket-search in google for TypoScript or TypoScript2 is really ingloriously)
And if it would delete the property, how I coud combine this with condition? Or is it not possible/necessary to delete a property with conditions, processors or other typoscript stuff? Because in the end is just one important: the output…
With your both help, there is no empty «id» left in sourceCode. Great!