In Julia unlike python for example values are not considered truthy. See a discussion about this concept here: On the arbitrariness of truth(iness).
If you would like to test whether all values are nonzero for example you could provide a function to the all function:
julia> all(!iszero, [2,2,2], dims=1)
1-element Vector{Bool}:
1