We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to achieve something like this pseudecode
if(a != null || b !=null) peter else{ jackson }
Ist it possible with the newest version?
The text was updated successfully, but these errors were encountered:
OOB, No. The above might not even possible with Handlebars.
I recommend decorating the model (e.g. wrapping) or using JMustache Lambdas which are very powerful as they allow stack access.
I'll add code later but you could make a generic Condition builder lambda.
{{#a}} {{#cond}} {{#or}} {{#b}} {{#test}} Finally do your or logic here. {{/test}} {{/b}} {{/or}} {{/cond}} {{/a}}
But I imagine that might be a little too verbose for your liking so I think decorating is your best option.
Sorry, something went wrong.
No branches or pull requests
I want to achieve something like this pseudecode
if(a != null || b !=null)
peter
else{
jackson
}
Ist it possible with the newest version?
The text was updated successfully, but these errors were encountered: