I tried below formula but Its not working and showing below error.
0 if 7500 > custom_employee_ctc > 0 AND custom_gender == "Male" OR 0 < custom_employee_ctc > 25000 AND custom_gender == "Female" else
175 if custom_gender == "Male" AND 7501 =< custom_employee_ctc < 10000 else
200
custom_employee_ctc and custom_gender is my custom field in Salary Slip.
Below is the error I am getting.
Error while evaluating the Salary Structure Worker7 at row 1.
Error: invalid syntax. Perhaps you forgot a comma? (, line 1)
Hint: This error can be due to invalid syntax.
Where does the 25000 come from, and what about February’s exception?
Anyway, why not use a longer, but easier to understand multi-line construct?
But that’s just my 2ct.
Also, I guess it would be nice if those who decide these tables supply an official library anybody could use. That would be a good use of tax money, putting the small programming effort needed by the whole collectivity at the place where the multiplication enabled by almost effortless copying of software were put to maximum effect.
A bit like FSF’s “Public money, public code” initiative, even if this would probably be another facette of the slogan.
In Germany, the finance ministry publishes pseudocode tax calculation-and-decision trees corresponding to the tax regulations which probably could be compiled to any language.