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  

if()

   
Examples  

Description   Allows the program to make a decision about which code to execute. If the expression evaluates to true, the statements enclosed within the block are executed and if the expression evaluates to false the statements are not executed.

프로그램이 실행할 코드인지 결정하도록 합니다. 표현식 값이 참이면 블럭내의 실행문이 실행됩니다. 표현식이 FALSE 이면 실행하지 않습니다.

   
Syntax  
if(expression) { 
  statements 
} 
   
Parameters  
expression   any valid expression that evaluates to true or false

참 또는 거짖으로 표현되는 모든 식
statements   one or more statements to be executed

실행할 하나 또는 그 이상의 실행문

   
Usage   Web & Application
   
Related   else