Index
 
  Reference for Wiring 1.0 (ALPHA) 0017+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name  

else

   
Examples  

Description   Extends the if() structure allowing the program to choose between two or more block of code. It specifies a block of code to execute when the expression in if() is false.

if() 구조문을 확장하여 두개 또는 그 이상 여러개의 코드 블럭중 하나를 선택할 수 있습니다. if() 가 거짓이 될때 지정한 코드 블럭이 실행됩니다. 

   
Syntax  
if(expression) { 
  statements 
} else { 
  statements 
} 

if(expression) { 
  statements 
} else if(expression) { 
  statements 
} else { 
  statements 
}
   
Parameters  
expression   any valid expression that evaluates to true or false
참과 거짖으로 표시될수 있는 모든 유효식
statements   one or more statements to be executed
하나 또는 그 이상의 실행문
   
Usage   Web & Application
   
Related   if()