Case vs If statements
Some time back I asked how to calculate a value (eg. Energy) that has different equations depending on disease (~150 diseases). Case statements would, as suggested, be a simple solution. 3 Q's:
1. The equations are not just different, but they have 0-6 variables that presumably require a field for entry.
2. Those 0-6 variables are often different depending on disease.
3. I'd like to present the user with the variable edit boxes contextually, ie. with some kind of label and only appearing when needed (keep in mind that there are 150).