Jade checkbox checked attribute unchecked based on conditional (if)
No need to specify the values:
input(type="checkbox", name="completed", checked=(condition))
If condition is false, there is no checked attribute will added.
You can use:
input(type="checkbox", name="completed", checked=(true===false ? "checked" : undefined))