How to set the conditions for a specific page

Hello! I found the construction - {{ if ne .URL ‘/myurl’ }} do something {{ end }}
How can I create alternative construction ? Something as {{ if .URL ‘/myurl’ }} do something {{ end }}

{{ if eq .URL '/myurl/' }} do something {{ end }}
2 Likes