Getting error while using 3 nested if functions - Any changes i need to change ?

Here is my code 

I understand that error i how can i use the same nested if without error?

  Discussion posts and replies are publicly visible

Parents Reply Children