like this yooo

http://www.emocutez.com

Selasa, 18 Oktober 2011

gabungan function dg if

<html>
<head>
<title>Function</title>
</head>
<body>
<%
function nilai
nilai=75
If nilai > 65 then
    Grade="lulus"
 Else
    Grade="tidak lulus"

End If
Response.Write "Grade deliana : "&Grade&"<br>"

Hasil="Tidak Lulus"
 If nilai >65 then
  Hasil ="""anda lulus...!"""
 End If
End Function

Response.Write"Dengan Nilai : "&nilai&"<br>"
Response.Write strhasil




%>
</body>
</html>

Tidak ada komentar:

Posting Komentar