Skip to content

String concatenation in ternary operator #4751

Discussion options

You must be logged in to vote

This is the best I could get for ya here:

{{ custom_title ? custom_title : other_title | ensure_left:Featured:  }}

BUT, you should be able to do it more-or-less the way you're doing it now as soon as this PR is merged: #4257

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jarnalyrkar
Comment options

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