If or condition

Should be straight forward. $heroDisc := “” all the time, what’s the best way to check if it’s assigned something else, in this situation?

{{if or (gt (len $heroDisc ) 2 ) (isset .Param "featureImage")}}
....
{{else}}
...
{{end}}

( not (eq "" $foo) )

Thanks. this worked also:

{{ if ( .Params.featureImage ) or (gt ($heroDisc | len) 2 ) }}

But not on the test page, which was the problem.

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