eknkc / pug

Go port of Pug (jade) template engine
MIT License
45 stars 6 forks source link

Boolean evaluation doesn't support ! (not operator) #7

Open rdbell opened 6 years ago

rdbell commented 6 years ago

Assume someValue = true...

These all evaluate to true:

if someValue

if !someValue

if someValue == true

if someValue == false

Is this expected behavior? How can I check if a bool is false without using an else statement?