ChrisVersion2
12-08-2008, 03:52 PM
Howdy Folks,
I'm trying to have var x equal zero if var y equals 0.
if var y is greater than 0 than war x will equal 240
This is the mess that I've coded. Novice level one I'm fully aware, any help or a direction would be great.
<script type="text/javascript">
var y = 15;
var x = wagemin;
wagemin()
{
if (wth <= 0)
{
return 0;
}
else
{
return 240;}
}
document.write(x)
</script>
I'm trying to have var x equal zero if var y equals 0.
if var y is greater than 0 than war x will equal 240
This is the mess that I've coded. Novice level one I'm fully aware, any help or a direction would be great.
<script type="text/javascript">
var y = 15;
var x = wagemin;
wagemin()
{
if (wth <= 0)
{
return 0;
}
else
{
return 240;}
}
document.write(x)
</script>