Is there something wrong with these if statements?

This is done in Filemaker Pro. It is providing me with one percentage value for every series. Is there an issue with the structure of these statements?

If(S4_BVD Sub Series Number = 1 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 1 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 1::S4_Inv Amount 1 / S3_Investments::S3_Series Investment Total 1; "" ) & 
If(S4_BVD Sub Series Number = 2 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 2 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 2::S4_Inv Amount 2 / S3_Investments::S3_Series Investment Total 2; "" ) & 
If(S4_BVD Sub Series Number = 3 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 3 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 3::S4_Inv Amount 3 / S3_Investments::S3_Series Investment Total 3; "" ) & 
If(S4_BVD Sub Series Number = 4 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 4 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 4::S4_Inv Amount 4 / S3_Investments::S3_Series Investment Total 4; "" ) & 
If(S4_BVD Sub Series Number = 5 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 5 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 5::S4_Inv Amount 5 / S3_Investments::S3_Series Investment Total 5; "" ) & 
If(S4_BVD Sub Series Number = 6 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 6 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 6::S4_Inv Amount 6 / S3_Investments::S3_Series Investment Total 6; "" ) & 
If(S4_BVD Sub Series Number = 7 & If( S4_BVD Entity Name = S3_Investments::S3_Entity Name & If( S4_Investment Date = S3_Investments::S3_Company Investment Date 7 ; "" ; "" ) ; "" ; "" ) ; S4_Investor_Entities 7::S4_Inv Amount 7 / S3_Investments::S3_Series Investment Total 7; "" )
/r/learnprogramming Thread