if n=A{

aa

X

}

else if n=B{

bb

X

}


이런 코드가 있으면


if A||B{

if n=A{

bb

}

else if n=B{

bb

}

X

}

이렇게 쓸까 아니면 더 이쁜 방법이 있을까염?