# Syntactic sugar: (x==2) and y=12 ; or even (x == 2) && y=12

**URL:** <https://discourse.julialang.org/t/syntactic-sugar-x-2-and-y-12-or-even-x-2-y-12/10969>\
**Category:** Internals & Design\
**Created:** [May 17, 2018, 10:10pm UTC](https://discourse.julialang.org/t/syntactic-sugar-x-2-and-y-12-or-even-x-2-y-12/10969 "2018-05-17T22:10:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 17, 2018, 10:16pm UTC](https://discourse.julialang.org/t/syntactic-sugar-x-2-and-y-12-or-even-x-2-y-12/10969/2 "2018-05-17T22:16:34Z")

</div>

just to build on this. kind of similar to:

> [@How to do one-liners and other short conditionals?](https://discourse.julialang.org/t/how-to-do-one-liners-and-other-short-conditionals/6100/11):
>
> Allow me to short-circuit the discussion and point to the relevant issues: [#6823](https://github.com/JuliaLang/julia/issues/6823) and [#16389](https://github.com/JuliaLang/julia/issues/16389). Happy reading!

---

_[View the full topic](https://discourse.julialang.org/t/syntactic-sugar-x-2-and-y-12-or-even-x-2-y-12/10969)._
