Template if statemens with or operators and pipes not working

made a post there

Try:

{{ if or (eq .Params.animal.type "dog") (eq .Params.animal.type "bear") (eq .Params.animal.type "fox") (eq .Params.animal.type "wolf") }}

<p> Belongs to the Canine family, they have distinctive fangs. <p>

{{ end }}

And also add a space here:

---
animal:
  type: "bear"
1 Like

Perfect, it works thanks a bunch

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.