l90r/jazzy-forms-dev — Issue #28: Add Conditional (IF/THEN) Statements
Author: amyreitz
Created: 2012-02-07 06:55:57+00:00
State: open

I'd like to be able to use if/then/else statements within the output formulas. It would be especially useful if statements could be nested. For example,

IF a < 10 THEN a * 2 ELSE IF a > 20 THEN a * 3 ELSE a * 2.5

In this case, if a is less than 10, it is multiplied by 2 - if a is between 10 and 20 it is multiplied by 2.5 - and if a is greater than 20 it is multiplied by 3.

I would like to use this to do a basic income tax calculation, but it is difficult to account for the marginal tax brackets without conditional statements.

Thanks!