Let me explain the problem in another way. Supose this code in FoxPro:

varX = 5
varA = "IIf(varX=1, 2, 4)"
? 10 + &varA && Shows 14
varA = "IIf(varX>5, 3, IIf(varX=5, 8, 7))"
? 10 + &varA && Shows 18

The problem is: how can I change the condition on the addition, without change the addition itself?

Thanks again...