I have no clue what i'm doing wrong with my program. I have tried everything I could think of. Here is the part I have written which I can't get to work the way I want it to:

<form name = "templn">
Enter a temperature <input type="text" name="temperature">
<br>
Does your last name begin with A - L? <input type="radio" name="choice" value="Yes"> Yes <input type="radio" name="choice" value="No"> No
<br>
Click here to reset form:<input type="button" value="reset" onClick="reset()">
</form>

<script language="Javascript">
if ((document.templn.temperature.value) > 80)
{
if ((document.templn.choice.value) = "Yes")
{
(document.write("please work")
}
}
</script>

Mostly its because of the if statement. Should it be a function instead? I'm trying to get different outputs when temperature is above/below a certain range and whether ones last name is from A - L or not.