# Quick Java Question (Shorthand if statements)

**URL:** <https://forum.kirupa.com/t/quick-java-question-shorthand-if-statements/203197>\
**Category:** random\
**Created:** [October 9, 2006, 12:28am UTC](https://forum.kirupa.com/t/quick-java-question-shorthand-if-statements/203197 "2006-10-09T00:28:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [October 9, 2006, 12:28am UTC](https://forum.kirupa.com/t/quick-java-question-shorthand-if-statements/203197/1 "2006-10-09T00:28:37Z")

</div>

I’m pretty sure that in PHP you could do if(x == a, b, c) which would be the equivalent of if(x == a || x == b || x == c)

Is there a similar shorthand in Java?
