How to add conditional sentences in template

Viewed 5152

How to write a conditional in Go Lang like this:

File: view.html

{{ if(var1 =="" && var2 =="" }}
ALL EMPTY
{{else}}
DISPLAY 
{{END}}
1 Answers
Related