I have been at this problem for hours now... non-stop...
This is going to be hard to describe without using my exact probelm. So here goes
I am designing a webpage for a local sport. They would like to be able to place what game is going to be going on that day on the site. For example: on Monday, they want it to say: "Pickup Game Chipeda Elementary 11:45". Then on Tuesday they want it to say: "Pickup Game Bear Creak 6:00"
and so on..
I have some code that I have tryed, but it does not work. If you could take a look at it and try to figure out what the probelm is, I would greatly appreciate it!
Code:
if (getDay = "0") {
place = "Bear Creak";
time = "Today: 1:00";
}
if (getDay = "1"){
place = "Chipeda Elementary";
time = "Today: 11:45";
}
if (getDay = "2"){
place = "Bear Creak";
time = "Today: 6:00";
}
if (getDay = "3"){
place = "Chipeda Elementary";
time = "Today: 11:45";
}
if (getDay = "4"){
place = "Summer League";
time = "Fountain Valley: 6:00";
}
if (getDay = "5" or "6"){
place = "There are no";
time = "Pickup Games Today";
}
This is going to be hard to describe without using my exact probelm. So here goes
I am designing a webpage for a local sport. They would like to be able to place what game is going to be going on that day on the site. For example: on Monday, they want it to say: "Pickup Game Chipeda Elementary 11:45". Then on Tuesday they want it to say: "Pickup Game Bear Creak 6:00"
and so on..
I have some code that I have tryed, but it does not work. If you could take a look at it and try to figure out what the probelm is, I would greatly appreciate it!
Code:
if (getDay = "0") {
place = "Bear Creak";
time = "Today: 1:00";
}
if (getDay = "1"){
place = "Chipeda Elementary";
time = "Today: 11:45";
}
if (getDay = "2"){
place = "Bear Creak";
time = "Today: 6:00";
}
if (getDay = "3"){
place = "Chipeda Elementary";
time = "Today: 11:45";
}
if (getDay = "4"){
place = "Summer League";
time = "Fountain Valley: 6:00";
}
if (getDay = "5" or "6"){
place = "There are no";
time = "Pickup Games Today";
}