How to use booleans in conditional statements?

I can’t seem to use boolean vars in my conditional statements. I’ve verified that my variables are in fact of boolean type, but cannot use them in conditional statements properly.

storeEval | 1==0 | false_var
storeEval | 1==1 | true_var
if | true_var
echo | true
else
echo | false
endif

I’ve used several different configurations of the if statement like if true_var==false_var, ${true_var}, etc.

If you look at the Katalon Recorder Samples, they wouldn’t approach it in this way it seems.

They would instead do something like follows:
storeEval | 0 | false_var
storeEval | 1 | true_var
if | true_var==1
echo | true
else
echo | false
endif