Hi I am having issues adding another set of conditions to my nested case statement. I have tried re formatting the statement several ways and putting the "END" in different places but i can't seem to get past the ORA-00909: invalid number of arguments error.
I thought i just needed one END per CASE, and that the END needs to come before the else to close out that condition. Is that wrong? If i comment out the last else condition it works fine.

As per the comments below i have tried to straighten up my code and set the correst else and end statements, but i still get the same error. Essentially there should be 5 sets of conditions.

```
    CASE 
    WHEN IND0.M_COM_FUT <>0 AND IND0.M_COM_FUT = IND5.M_COM_IND 
    THEN 
        CASE    WHEN IND5.M_COM_IND = CMIND5.M_REFERENCE 
                THEN
                    CASE    WHEN CMIND5.M_PHYSICAL = PHYS5.M_REFERENCE 
                            THEN PHYS5.M_LABEL 
                    END 
        END 
    ELSE
        CASE    WHEN   IND0.M_UNDRL = IND3.M_INDEX AND IND3.M_IND_LAB LIKE '%NBY%' AND IND3.M_COM_NBY_T = 2 
                THEN
                    CASE    WHEN  IND3.M_COM_FUT = IND6.M_COM_IND 
                            THEN 
                                CASE    WHEN IND6.M_COM_IND = CMIND6.M_REFERENCE 
                                        THEN
                                            CASE    WHEN CMIND6.M_PHYSICAL = PHYS6.M_REFERENCE 
                                                    THEN PHYS6.M_LABEL 
                                            END 
                                END 
                    END
          END          
       ELSE
            CASE    WHEN IND0.M_UNDRL = IND3.M_INDEX 
                    THEN
                        CASE    WHEN IND3.M_COM_IND = CMIND3.M_REFERENCE 
                                THEN
                                    CASE    WHEN CMIND3.M_PHYSICAL = PHYS3.M_REFERENCE 
                                            THEN PHYS3.M_LABEL 
                                    END 
                        END                         
            END
        ELSE
            CASE    WHEN   IND0.M_UNDRL = IND3.M_INDEX AND IND3.M_IND_LAB LIKE '%NBY%' AND IND3.M_COM_NBY_T = 0 
                    THEN 
                        CASE    WHEN  IND3.M_COM_FUT = FUT.M_REFERENCE 
                                THEN 
                                    CASE    WHEN FUT.M_QUOT_FWD= QUOT.M_REFERENCE 
                                            THEN
                                                CASE    WHEN QUOT.M_INDEX = IND0.M_INDEX 
                                                        THEN PHYS0.M_LABEL 
                                                END 
                                    END 
                        END 
            END 
         ELSE
            CASE    WHEN IND0.M_IND_LAB= IND0.M_IND_LAB 
                    THEN PHYS0.M_LABEL
            END 

END AS PRODUCT,

```