Output for Two Dropdowns and Date Range Picker

hi everyone,

So in a situation where one has two dropdown and date range picker as inputs,

how do one effectively write the code for the output for the different combination?

I wrote the output code but I had to do that for the different combinations that could exist between those inputs. So in my case, I have 8 different outputs for different inputs combination and I had to write the code for each outputs (including the structure and styling for each).

It worked fine but that’s a long code.

Can anyone point me to a material (video) or anything that can be of assistance.

Thank you.