Skip to content

[Feature Request] If Exists #79

@shanejones

Description

@shanejones

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions