-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Milestone
Description
We already have this for conditional.
<if condition="foo === 'bar'">
<p>Foo really is bar! Revolutionary!</p>
</if>
I'm trying to check if a variable exists before outputting it or hiding the block completely if it doesn't exist so I tried
<if condition="foo !== ''">
<p>Foo really is bar! Revolutionary!</p>
</if>
I think it would be great if we had something like
<if exists="foo">
<p>Foo really is bar! Revolutionary!</p>
</if>
Metadata
Metadata
Assignees
Labels
No labels