# If & else multiple expression // boolean

**URL:** <https://forum.kirupa.com/t/if-else-multiple-expression-boolean/171102>\
**Category:** Uncategorized\
**Created:** [December 1, 2005, 8:53pm UTC](https://forum.kirupa.com/t/if-else-multiple-expression-boolean/171102 "2005-12-01T20:53:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitras](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nitras/32/1475_2.png) [@nitras](https://forum.kirupa.com/u/nitras)\
**Post date:** [December 1, 2005, 8:53pm UTC](https://forum.kirupa.com/t/if-else-multiple-expression-boolean/171102/1 "2005-12-01T20:53:40Z")

</div>

hi once more a question,

i was searching ond And booleans in the help file and came onto this example

```auto

var turns:Number = 2; var score:Number = 77; if ((turns <= 3) && (score >= 75)) { trace("You Win the Game!"); } else { trace("Try Again!"); } // output: You Win the Game! 

```

now, i want this to work with my example.

the basic idea is. when it’s wednesday from 21hour till 23 hours, i want an mc to display.

what am i am doing wrong? i feel stuck

```auto

nu = new Date();
uren = nu.getHours();
minuten = nu.getMinutes();
seconden = nu.getSeconds();
milli = nu.getMilliseconds();
if(uren < 10){
	uren = "0" + uren;
}
if(minuten < 10){
	minuten = "0" + minuten;
}
if(seconden < 10){
	seconden = "0" + seconden;
}
	if(milli < 100){
		milli = "0" + milli;
	}
	if(milli < 10){
		milli = "0" + "0" + milli;
	}
	
tijd = uren + ":" + minuten + ":" + seconden + ":" + milli;
////
dag = new Array();
dag[0] = "sunday";
dag[1] ="monday";
dag[2] ="tuesday";
dag[3] ="wednesday";
dag[4] ="thursday";
dag[5] ="friday";
dag[6] ="saturday";
nu = new Date();
vandaag = dag[nu.getDay()];
jaar = [nu.getFullYear()];
maand = [nu.getMonth()+1];
today = [nu.getDate()];
milsec = [nu.getMilliseconds()];
voldag = vandaag + ":" + today + ":" + maand + ":" + jaar;

if ((vandaag == dag[3]) && (uren >= 21) && (uren <= 23)){
	live._visible = true;
	not_live._visible = false;
} else {
live._visible = false;
	not_live._visible = true;
	updateAfterEvent();
}

```
