### Title

Script to make calculation show $0, if result negative

### Post

How do i write a script to do the following:

1. Perform a specific calculation

2. If the calculation result is negative, just show $0.00 as the result

3. if the calculation is positive, show the result.

I'm on FMP 11.

Thanks.

You don't really need a script for this in most cases.

This calculation will replace negative values with zero:

max ( //put your calculation here ; 0 )