
I was working on see new email and based on the from address, creating a Planner Task.
I had to put this long and kind of weird logic to netested if else to see the from address.
For me the best solution is to create another if else condition and start from where it throws above error.