IFFLogic (Function)

image\trumpet2.gif Disclaimer

The IFFLogic function is used to conditionally return one of two specified true/false expressions.

Syntax

IFFLogic(Test, TrueVal, FalseVal)

Returns (Boolean)

The true/false value of TrueVal if Test is true; the true/false value of FalseVal if Test is false.

Parameters

Name

Type

Expression

Test

TrueFalse

Specifies the conditional expression to check (such as Close > Open).

TrueVal

TrueFalse

Sets the True/False expression to evaluate if Test condition is true.

FalseVal

TrueFalse

Sets the True/False expression to evaluate if Test condition is false.

Remarks

The IFFLogic function enables you use a Test condition to determine whether to evaluate either a 'True' expression or 'False' expression.

This function is similar to the IFF function, however the second and third inputs are true/false expressions, not numeric values.

Example

Assigns to Value1 the true/false value of the expression Close>Close[1] if Close>Open is true or the true/false value of the expression Open<Open[1] if Close>Open is false.

Value1 = IFFLogic(Close>Open, Close>Close[1], Open<Open[1]);

Reference

The IFFLogic function was developed by TradeStation Technologies, Inc.