Mega Code Archive

 
Categories / Java Tutorial / JSP
 

Using the if Statement

< HTML>   <HEAD>     <TITLE>Using the if Statement</TITLE>   </HEAD>   <BODY>     <H1>Using the if Statement</H1>     <%         int value = 10;         if(value > 0)             out.println("Absolute value of " + value + " = " + value);     %>   </BODY> </HTML>