Is there ever a case when:
if (condition) {
statement
} else {
if (condition2) {
statement
} else {
statement
}
}
Not equivalent:
if (condition) {
statement
} else if (condition2) {
statement
} else {
statement
}
If there is a case, I struggle to find a deal. If anyone knows an example counter, or if it is definitely equivalent, your input would be greatly appreciated.
source
share