You have pretty much already written it yourself.
What is the data type of Shallow_soil?
Is it Boolean or String?
If it is Boolean, then:
If it is String, then:Code:MyCalc:IIF([Shallow_soil]=True,[N_max] + 30, [N_max])
Code:MyCalc:IIF([Shallow_soil]="True",[N_max] + 30, [N_max])
Works perfectly thanks alot! I knew the theory on how it would work but I couldn't get it to work for some reason, I don't think I had the brackets quite right (I can never get them right!)
Thanks again.
If you field names do not have spaces in them, you usually do not need the square brackets. But it never hurts to add them.