The values assigned to the $var are integer [1|0] and not string ["1"|"0"].
In the absence of further clarification of the Boolean definition, I'm going with $lFlag just because it 'feels' right.
Thanks...
_________________________
We all live in a Yellow Subroutine...