You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
On Wed, Dec 7, 2016 at 9:56 AM Mariusz Nowak ***@***.***> wrote:
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 <https://github.com/shama/bel/wiki> is very silent on
that very common use case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWletAEI3G6Ed5jgRPz9Br7Rf_DFz8Qks5rFnTTgaJpZM4LGV2h>
.
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 dedicatedif
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.
The text was updated successfully, but these errors were encountered: