if (restroom) {
if (fleet) {
secondIconM9;
} else {
secondIcon;
}
} else {
if (fleet) {
firstIconM9;
} else {
fistIcon;
}
}
This is the code that I have written. It works and I can refactor it into a ternary but I have a feeling that this is unnecessarily descriptive. Is there a way to better write this nested if-else condition.