IFFString (Function)

image\trumpet2.gif Disclaimer

The IFFString function is used to conditionally return one of two specified string values.

Syntax

IFFString(Test, TrueVal, FalseVal)

Returns (String)

The string from input TrueVal if Test is true; the string from input FalseVal if Test is false.

Parameters

Name

Type

Description

Test

TrueFalse

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

TrueVal

String

Sets the string to return if Test expression is true.

FalseVal

String

Sets the string to return if Test expression is false.

Remarks

By using the IFFString function, you are able to evaluate one or more conditions in the Test input expression, returning one string value if Test is true, and returning another string value if Test is false.

This function is similar to the IFF function, however the second and third inputs are text strings, not numeric values.

Examples

Plot1(IFFString(Close>Open,"True","False");

Reference

The IFFString function was developed by TradeStation Technologies, Inc.