One way to effectively double the number of if statments allowed is to
use an "AND" or "OR" statment. For example, I wanted to apply if
statments for if value=x, divide a1 by 8. If value =y, divide a1 by 9.
You can say if a1 is greater than or equal to 2 but less than 8, then
do if statment1, if statment2...if statment7
Set the FALSE value for the AND statment to if statment8...if statment
14.
It only works on values you can get a true, false from an and or or
statment. I suppose you could put several and/or statments in the
original if statment.
Sure, there are all kinds of complicated workarounds so you can get oodles of
IF statements. But all of the ones I've seen have been a lot more complicated
(and consequently difficult to modify and/or debug) than a relatively simple
lookup table.
At least it has always seemed that way to me. I have not come across an
instance where there appears to be a real advantage to a complicated IF
construct, compared with other methods that are easier to modify and debug.
I'm not saying that doesn't exist -- just that at my relatively low level of
experience, I have not seen it.
--ron