Skip to content
New issue

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

Conditional resolution #59

Open
medikoo opened this issue Dec 7, 2016 · 1 comment
Open

Conditional resolution #59

medikoo opened this issue Dec 7, 2016 · 1 comment

Comments

@medikoo
Copy link

medikoo commented Dec 7, 2016

Is there any solution of implying if..else logic with templates?

As (as far as I know) we can't put if statement directly in body of ${ }, there is probably a need for dedicated if function e.g. bel.if(condition, onTrue, onFalse).

Is something as that envisioned, or maybe already there's some solution (or convention) coined for that?

Unfortunately wiki is very silent on that very common use case.

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Dec 7, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants