Skip to content

if else - how does it work for simple conditions? #4725

Answered by niloc7
niloc7 asked this question in Q&A
Discussion options

You must be logged in to vote

This seems like a solution but it seems rather long.. is there a shorter way of doing this?

{{ if parent:product-id }}
                {{ parent:product-id }}
            {{ else }}
                {{ product-id }}
            {{ /if }}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@niloc7
Comment options

@jasonvarga
Comment options

@niloc7
Comment options

Answer selected by jasonvarga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants