Home
<!DOCTYPE html> <html> <body> <h1>Demo: if condition</h1> <script> if( 1 > 0) { alert("1 is greater than 0"); } if( 1 < 0) { alert("1 is less than 0"); } </script> </body> </html>
Result: