A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Documentation Area
Document Path: /doc/LPC/switch-case
SWITCH CASE STATEMENT
switch (expr) { case value_1: statement_1;
case value_2: statement_2;
...
case value_n: statement_n;
default: statement;
}
Execute 'statement x' depending of the value of 'expr'.
The 'default' case is optional.
A 'break' in the 'statement' will terminate the case check.
Note:
If no 'break' is set at least a 'default' case might match!
This page was generated in LPC
Imprint / Impressum