The IF function in SFM formulas seem to work very much like an IF statement in Excel - IF(logical_test, value_if_true, value_if_false). This means that in the "value_if_false" section, you can add another IF statement and thus get nested IF statements. Not very pretty, but probably do-able.