Hi,
I have a small question. I am developing a php code and it has nested if else statements and it has like 7-8 nested if and else statements. I am looking to reduce the nested if else to reduce the complexity of understanding the code. Is there a better way to reduce the code. Here is the sample example
if() {
if() {
if() {
if() {
} else {
}
} else {
}
} else {
}
} else {
}
Something like this and the structure is very huge and all the if's are dependent on the if's above it.