Adding two statements

Hi Guys,

I am trying to add two statement variable and seem to be having some issues. I would appreciate it if someone could point me in the right direction…

What I am trying to do is… If SiteParams gtm is ON and the Site is not being served by the hugo built in server, do the following…

{{ if and ($.Site.Params.gtm) (not (.Site.IsServer)) }}
{{ end }}



Could you be more specific about what issues you are getting?

When I use the above statement, the code is not showing even on generated files.

As is, that line looks like it should work. What is the actual value of .Site.Params.gtm? Better yet, do you have your code somewhere we can have a look at?