Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if else statement

int x = 30;
int y = 40;

if(y>x)
{
System.out.print("x is greater than y");
}
else
{
System.out.print("x is not greater than y");
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #statement
ADD COMMENT
Topic
Name
8+3 =