-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Unexpected behavior of evaluating "index" in "test.Ternary" #2222
Comments
It may just be an over-simple example, but why are you using One other issue here is that the test.Ternary expects a boolean (or boolean-like string), so feeding it The reason the second example works is that the
the word "effectively" does a lot of heavy lifting there, as what I really meant was "this is similar in concept, but with subtle and very important differences" 🤦♂️ Perhaps simply removing that block would reduce confusion... |
Sorry, for my late reply.
Unfortunately, the clumsy use of
I am afraid, I have to agree. Still worse, trying to apply
expression. What is your take on providing a dedicated operator/function for this common situation in |
Just realized, that
provides a more palatable option. I guess, that's as good as it gets. |
Hi
Maybe it's just me, but somehow the semantic of
gomplate
'stest.Ternary
processing the result ofindex
eludes me.Especially, when compared to
Would you mind pointing out where I went wrong?
Thank you very much
The text was updated successfully, but these errors were encountered: