# Using the or in flash? possible and if so how with a simple if statement?

**URL:** https://forum.kirupa.com/t/using-the-or-in-flash-possible-and-if-so-how-with-a-simple-if-statement/170051
**Category:** flash
**Created:** [November 22, 2005, 12:08pm UTC](https://forum.kirupa.com/t/using-the-or-in-flash-possible-and-if-so-how-with-a-simple-if-statement/170051 "2005-11-22T12:08:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)
#### Post date: [November 22, 2005, 12:08pm UTC](https://forum.kirupa.com/t/using-the-or-in-flash-possible-and-if-so-how-with-a-simple-if-statement/170051/1 "2005-11-22T12:08:02Z")

</div>

Hi all does anyone know how to use the or statement?

For example:

```auto

//Dusk
if (TimeOfDay>=17<=20) {
	_root.greeting = "Dusk";
}

```

This does not work correctly, but I tried using the or and that too does not work? Any ideas
