This is a repro of WEB-896
{{#ifeq:1|1|{{#vardefine:a|true}}true|{{#vardefine:a|false}}false}} {{#var:a}}
true true
See here for counterpart in the sandbox Wiki.