Atul kumar singh
Atul kumar singh

Reputation: 474

SugarCRM Field Calculation example of ifElse

I am new to SugarCRM. I have a requirement to calculate a field value through studio. But, in one of the fields which comes in denominator can be 0. So, i want to modify the formula through ifElse, how to do that.

Example - If (field1>0){calcField/field1} else(calcField=0).

Upvotes: 1

Views: 630

Answers (1)

Amitesh Kumar
Amitesh Kumar

Reputation: 3079

you can use calculated field , if else like this:

ifElse(equal($status,"Held"),1,0)

For more information check this link :

Calculated field in sugarcrm

Upvotes: 1

Related Questions