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

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).

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!

it’s in the 1.7 release news: Dot-broadcasting for short-circuiting ops .&& and .|| by mbauman · Pull Request #39594 · JuliaLang/julia · GitHub

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

Cool! Thanks!