spinal.core
case/switch statement
switch(x){ is(value1){ //execute when x === value1 } is(value2){ //execute when x === value2 } default{ //execute if none of precedent condition meet } }
switch Documentation
(Since version ) see corresponding Javadoc for more information.
case/switch statement
switch Documentation