# Logical operators in julia

**URL:** <https://discourse.julialang.org/t/logical-operators-in-julia/21141>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 24, 2019, 12:49pm UTC](https://discourse.julialang.org/t/logical-operators-in-julia/21141 "2019-02-24T12:49:49Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [February 24, 2019, 4:02pm UTC](https://discourse.julialang.org/t/logical-operators-in-julia/21141/8 "2019-02-24T16:02:10Z")

</div>

Are you updating from Julia 0.5 to 1.0? If so, it might make sense to go in steps via 0.6 and 0.7 as those will give you deprecation warnings and tell you how to upgrade your code; or at least when you hit raod-blocks. In Julia 0.6 this gave:

```julia
julia> trues(2) & trues(2)
WARNING: A::AbstractArray & B::AbstractArray is deprecated, use A .& B instead.

```

See also [PSA: use Julia 0.7 if you are upgrading](https://discourse.julialang.org/t/psa-use-julia-0-7-if-you-are-upgrading/13321)

---

_[View the full topic](https://discourse.julialang.org/t/logical-operators-in-julia/21141)._
