Evaluating Expressions Depending on a Condition


If you evaluate an expression inside a condition, a special value is shown when the condition is false. By default this special value is (approximately) -999.1111. You can alter this special value via the Options menu on the AnalyseGE form. An example will make this clear.

If you ask to evaluate an expression which is inside an IF, AnalyseGE may need to move the IF condition to become a condition on last ALL (if there is one).

Example

Formula (all,c,com) coef5(c) = IF(coef1(c) < 3, SQRT(3-coef1(c))) ;

If you select SQRT(3-coef1(c)), the expression AnalyseGE will evaluate is:

(all,c,com: coef1(c) < 3) SQRT(3-coef1(c)) ;}

[Prior to Version 2.99 (June2010) of AnalyseGE, this was not done correctly and may have resulted in an error attempting to evaluate SQRT of a negative number.]



URL of this topic: www.copsmodels.com/webhelp/analysege/hc_valueifconditionfalse.htm

Link to full GEMPACK Manual

Link to GEMPACK homepage