Need help with multiple if statements in...

Clarke S

New member
...html!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!? I cant get my stupid program to run
i need it to display different outputs depending on the x variable
this is my program :
<html>
<head>
<title> Control Structures </title>
<script language="javascript">
var fullname=null;
var mark,x=null;
var nl="<BR>"
fullname = prompt("Please enter your first and last name");
mark = prompt("Please enter your score in this course - ICS3M");
alert("Welcome to my Website" + " " + fullname + "\n" + " " + "Your score is" + " " + mark);
</script>
</head>
<body>
<center>
<h1>
<script language="javascript">
document.write("Hi" + " " + fullname +nl);
document.write("Your score is" + " " + mark +nl);
if(50>x>=0)
{
document.write("You are at level zero. You FAIL" +nl);
}
else f(x=50)
{
document.write("Your score is just PASSING");
}
else(60>x>50)
{
document.write("You are at level 1");
}
</script>
</html>

this is the output when i input k as the name and 30 for the score:
Hi k
Your score is 30
You are at level zero. You FAIL
Your score is just PASSING
sorry tswaters, the output of that on the page is nothing.
its blank.
 
Back
Top