# Multiple operands with "or" operator (syntax question)

**URL:** https://forum.kirupa.com/t/multiple-operands-with-or-operator-syntax-question/67816
**Category:** flash
**Created:** [October 19, 2004, 9:56pm UTC](https://forum.kirupa.com/t/multiple-operands-with-or-operator-syntax-question/67816 "2004-10-19T21:56:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![PCGamre](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@PCGamre](https://forum.kirupa.com/u/PCGamre)
#### Post date: [October 19, 2004, 9:56pm UTC](https://forum.kirupa.com/t/multiple-operands-with-or-operator-syntax-question/67816/1 "2004-10-19T21:56:23Z")

</div>

Hey, how can I shortcut the syntax on multiple operands using the “or” operator? Does each statement have to be explicitly written out?

For instance, this is not allowed (just ignored by Flash) :

```auto

function rezOther() {
if (System.capabilities.screenResolutionY != 480,600,768,864,1024,1200 && System.capabilities.screenResolutionY < 1200) {
..........and so on

```

Or must Flash have it as:

```auto

function rezOther() {
if (System.capabilities.screenResolutionY != 480 || System.capabilities.screenResolutionY != 600 || System.capabilities.screenResolutionY != 768 || System.capabilities.screenResolutionY != 1024 && System.capabilities.screenResolutionY < 1200) {
..........and so on

```

Also, if I have to write a looooooooooonnnnnng line of AS like in the code window above, can I just go to the next line without Flash crying about it or does it all have to stay on the same line (not wrapped…)?
