-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Hello!
I think it would be awesome to implement ternary operator support like Twig does:
{{ foo ? 'yes' : 'no' }}
{{ foo ?: 'no' }} == {{ foo ? foo : 'no' }}
{{ foo ? 'yes' }} == {{ foo ? 'yes' : '' }}
atticoos, ishu3101, guillaumewuip, riadloukili, azizur and 172 morepaulshryock, Gurushanth1, mryurii, brian-allemana and AbdulMutaalpaulshryock, Gurushanth1, brian-allemana and AbdulMutaalkamil-adam, aaronamm, jhonnycano, theshteves, mateusvahl and 10 morepaulshryock, brian-allemana and AbdulMutaalpaulshryock, mryurii and AbdulMutaal