我想打破其他條件,如果它有一個內部if條件,如果內部條件如果內部如下變成真,請給我建議一種方式。如何打破其他條件如果條件
if(condition1=true){
}
else if(condition2=true){
if(condition3=true){
do activity 1;
//I want to break here if condition3 is true, without executing activity 2 & 3
}
do activity 2;
do activity 3;
}
使用return; ... –
我希望'='是該示例的目的,而不是代替''==(應該根本不存在)。 – Maroun
@MarounMaroun只是'if(conditionN)' – nachokk