4 ms·
Going along with the joke, that's almost how elisp (most of the other lisps too, I believe) works: (if (or cond1 .. condn) (progn (true1)
by kaushalmodi 9y ago
Going along with the joke, that's almost how elisp (most of the other lisps too, I believe) works:
(if (or cond1 .. condn)
(progn
(true1)
(true2))
(false1)
(false2))
But in Go templates, it would be:
{{ if (or cond1 .. condn) }}
true1
true2
{{ else }}
false1
false2
{{ endif }}