If Statement in Code Block Suddenly Not Working REVIT 25

Wizards, i am lost as to what i am missing here. In all versions of REVIT prior to 25 i have used this Dynamo script with zero issues. When running in 25 i am suddenly getting an error. Can anyone tell me what i need to do with this formula for it to work?

The error i am getting is … “,” expected
I am not understanding where i am missing a “,”

image

I didn’t get any errors when I wrote the code this way. It’s not a subject I’m familiar with, I hope it helps.

You can use a Code Block instead

formula

x == 4 ? y * 0.60 :
x == 3 ? y * 0.65 :
x == 2 ? y * 0.70 :
y;
2 Likes

Works perfect. Was unaware of the formula node change, thank you!