Salary Component Condition Error

Hi , i am using the frappe 15 and i want to add the condition if the B is greater than 15000 then considered the amount 1800 else B * 12% .

Can any one guide me how to add this condition in the salary Component

i have used this condition but i am getting this error 1800 if B > 15000 else B * 12% error is Formula: Invalid python code on line 1

1800 if B > 15000 else B * 12%

^

Try .12 instead of ā€œ12%ā€

Dear @amreen

if (B > 15000, 1800, B * 0.12)

Dear @volkswagner - Iā€™m just adding to your already CORRECT logic, in a formatted manner.