Just wanted to understand if following two statements differ in performance and execution (I understand the best practice though)
if (condition) {
do something;
}
else if (another condition) {
do something else;
}
and
if (condition) {
do something;
} else {
if (another condition) {
do something else;
}
}
Thanks
Aucun commentaire:
Enregistrer un commentaire