# Broadcasting of logical operators in v1.6 vs v1.7

**URL:** https://discourse.julialang.org/t/broadcasting-of-logical-operators-in-v1-6-vs-v1-7/75772
**Category:** General Usage
**Tags:** question, syntax
**Created:** [February 4, 2022, 3:37am UTC](https://discourse.julialang.org/t/broadcasting-of-logical-operators-in-v1-6-vs-v1-7/75772 "2022-02-04T03:37:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zengfung](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zengfung/32/28958_2.png) [@zengfung](https://discourse.julialang.org/u/zengfung)
#### Post date: [February 4, 2022, 3:37am UTC](https://discourse.julialang.org/t/broadcasting-of-logical-operators-in-v1-6-vs-v1-7/75772/1 "2022-02-04T03:37:53Z")

</div>

I’m trying to use broadcasting on logical operators in Julia. I find that the same broadcasting code works in v1.7 (right) but not v1.6 (left).

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/0/10884458015cda8ce33c5157b080c9996142b923.png)

Can anyone explain why this is the case? What is a workaround for this scenario? I’d like to have the same lines of code that work on both v1.6 and v1.7.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [February 4, 2022, 3:44am UTC](https://discourse.julialang.org/t/broadcasting-of-logical-operators-in-v1-6-vs-v1-7/75772/2 "2022-02-04T03:44:49Z")

</div>

> [@zengfung](#):
>
> Can anyone explain why this is the case?

it’s in the 1.7 release news: [Dot-broadcasting for short-circuiting ops .&& and .|| by mbauman · Pull Request #39594 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/39594)

> [@zengfung](#):
>
> What is a workaround for this scenario

`.|` might work? the problem is `||` is technically short-circuit

---

<div class="post-metadata">

### Author: ![zengfung](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zengfung/32/28958_2.png) [@zengfung](https://discourse.julialang.org/u/zengfung)
#### Post date: [February 4, 2022, 4:14am UTC](https://discourse.julialang.org/t/broadcasting-of-logical-operators-in-v1-6-vs-v1-7/75772/3 "2022-02-04T04:14:54Z")

</div>

Cool! Thanks!
