Calculating multiple if functions in a property

Hello all,

I am trying to do the equivalent of an ifs statement in Hubspot’s new calculation functionality within a property. In order to do this, I have used nested if functions within eachother but for some reason, Hubspot is not recognising the second if. Please can someone help with this? If statement is below:

if([properties.delivery_fee_service_fee] == “Delivery Fee”, ([properties.amount] * 0.23) + ([properties.order_frequency__numerical_] * 25.2), if([properties.segmentation_] == “JEP”, [properties.amount] * ([properties.new_service_fee] + 0.05), [properties.amount] * ([properties.new_service_fee] + 0.23)))

Thank you

Hey, @PSantabarbara :waving_hand: Have you tried creating this or a similarly structured calculated property in-app? I couldn’t find a great example of a calculation property that is nested in the manner you listed in the documentation. — Calculation property syntax.

Best,

Jaycee

Hello Jaycee, I have tried creating this in app but for some reason it has
not worked. Please could you help?