Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ok just a total noob question. i

Status
Not open for further replies.

Johno2090

Programmer
May 3, 2002
31
0
0
GB
Ok just a total noob question.

im having trouble with If statments i assumed they would be stright forward here is what ive been playing with

Code:
var HourofDay;
HourofDay = new date();
HourofDay = hourofday.getHours();

if (hourofday != "15") {
	Output="yay"
	gotoAndPLay(2);

	
}

if (hourofday != "16") {
	Output="yay2"
	gotoAndStop(2);
	
}

What have i done wrong it just sits and dosent do anything
 
var HourofDay;
HourofDay = new date();
HourofDay = hourofday.getHours();

if (hourofday == 15) {
Output="yay"
gotoAndPLay(2);


}

if (hourofday == 16) {
Output="yay2"
gotoAndStop(2);

}



_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top