Compatible With ScriptsCompatible With ExpressionsCompatible With The Command Line

 

double cond (int condition, double returnIfTrue, doublereturnIfFalse )

 

Return Value: If condition equals 0 then returnIfFalse is returned, otherwise returnIfTrue is returned.

 

Arguments:

condition

expression to evaluate
returnIfTrue value to return if condition does not equal 0
returnIfFalse value to return if condition does equal 0

 

If condition is equal to 0 then the value of returnIfFalse is returned. If condition does not equal 0 then the value of returnIfTrue is returned. 

 

Furthermore, if returnIfTrue or returnIfFalse is a function, then the function will only be called if it's return value is needed.

 

Example:

Exp_1
|_cond( NOW < 25, MoveTo(Null, Null_1, 1), MoveTo(Null, Null_2, 1)  )

This function will constrain Null to Null_1 while the current frame is less than 25, after that the second MoveTo function will be evaluated and Null will be constrained to Null_2. This function should always be used over 'oldif' except in cases where backward compatibility with project:messiah is an issue.

Converted from CHM to HTML with chm2web Pro 2.82 (unicode)