Table of Contents
My.Other category contains all built-in functions that do not belong to a specific category.
IIFnumeric #
This function simulates the behavior of IF statement. To be used as an alternative to IF statement to assign a numeric value to a variable according to a specific condition.
Result type: numeric
Arguments:
- BOOLEAN ESPRESSION: any boolean expression.
- TRUE PART: numeric value the function should return when BOOLEAN EXPRESSION is TRUE.
- FALSE PART: numeric value the function should return when BOOLEAN EXPRESSION is FALSE.
'i' will assume Close value if Close is greater than Open, otherwise Open.
Dim i As Numeric = My.Other.IIFnumeric(Close > Open, Close, Open)
IIFstring #
This function simulates the behavior of IF statement. To be used as an alternative to IF statement to assign a string value to a variable according to a specific condition.
Result type: string
Arguments:
- BOOLEAN ESPRESSION: any boolean expression.
- TRUE PART: string value the function should return when BOOLEAN EXPRESSION is TRUE.
- FALSE PART: string value the function should return when BOOLEAN EXPRESSION is FALSE.
's' will assume 'HELLO' value if Close is greater than Open, otherwise 'WORLD'.
Dim s As String = My.Other.IIFstring(Close > Open, "HELLO", "WORLD")