# \`&\` does not appear to shortcircuit but \`&&\` does not work, is ther

**URL:** https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345
**Category:** General Usage
**Created:** [January 31, 2021, 9:42pm UTC](https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345 "2021-01-31T21:42:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)
#### Post date: [January 31, 2021, 9:42pm UTC](https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345/1 "2021-01-31T21:42:25Z")

</div>

`&` does not appear to shortcircuit but `&&` does not work, is there another operator for broadcasted short-circuiting logical AND?

Note that the poster on Slack cannot see your response here on Discourse. Consider answering the question there or pinging the poster here on Discourse so they see the reponse.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1612129197292000?thread_ts=1612129197.292000&cid=C6A044SQH)

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [January 31, 2021, 10:23pm UTC](https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345/2 "2021-01-31T22:23:12Z")

</div>

The answer, as per slack, is that `&&` is not a _really_ a function, but is rather a “core syntax” of the language.

This comes with certain limitations, `&&` cannot be broadcasted. A solution is to use `map`, or `broadcast`, i.e.

```julia
((x, y) -> (x && y)).(a, b)

```

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [January 31, 2021, 10:34pm UTC](https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345/3 "2021-01-31T22:34:02Z")

</div>

@carstenbauer, it looks like BridgeBot is incorrectly translating special characters like `&` as HTML entities like `&amp;`?

---

<div class="post-metadata">

### Author: ![logankilpatrick](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/logankilpatrick/32/38123_2.png) [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)
#### Post date: [January 31, 2021, 10:36pm UTC](https://discourse.julialang.org/t/does-not-appear-to-shortcircuit-but-does-not-work-is-ther/54345/4 "2021-01-31T22:36:36Z")

</div>

Yes, I have an issue open here: [GitHub - JuliaCommunity/SlackBridge](https://github.com/JuliaCommunity/SlackBridge) will investigate.
