Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if js

if (condition) {
	// statement
} else if(condition){
	// statement
}else{
  // statement
}
/*OR*/
condition ? statement(true) : statement(false) // Ternary operator
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
7+1 =