Probably because you are doing something like this?
julia> if result
2+2
end
ERROR: TypeError: non-boolean (BitVector) used in boolean context
The error is clear if maybe a bit subtle - a BitVector is not a boolean, it is a vector of booleans, so you can’t use it as a boolean value in an if statement.
I think @jnewbie is not aware that Bool is a Number type in Julia and many times it is displayed as 0/1 instead of false/true. Their first example already had Bools I think.