내부 if 조건이있는 조건에서 else if 조건을 벗어나고 싶다면, 내부 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