<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Script-Type" content="text/javascript charset=utf-8"> <title>Sample source of conditional branch (source)</title> </head> <body> <p>This sample is 'age = 50'.</p> <p>When you make changes to 'age = 40', another message is displayed.
(<a href="sp_if2.html">sample</a>)</p> <p>There is a way a user inputs age, but please focus on a behavior of 'If' in this sample. <script type="text/javascript"> <!-- age= 50; if (age >= 44){alert('Take care!');} else{alert('It’s nice to be young!');} //--> </script> </p> </body> </html>