  | NMathFunctionsIf(IDFColumn, FuncString, Boolean, String, String) Method | 
            Creates a new column by applying a logical function to the elements of a
            column. Elements in the original column that return true are set to the given 
            true value in the new column; elements that return false are set to the given 
            false value.
            
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static IDFColumn If(
	IDFColumn data,
	Func<string, bool> function,
	string ifTrue,
	string ifFalse
)
Public Shared Function If ( 
	data As IDFColumn,
	function As Func(Of String, Boolean),
	ifTrue As String,
	ifFalse As String
) As IDFColumn
public:
static IDFColumn^ If(
	IDFColumn^ data, 
	Func<String^, bool>^ function, 
	String^ ifTrue, 
	String^ ifFalse
)
static member If : 
        data : IDFColumn * 
        function : Func<string, bool> * 
        ifTrue : string * 
        ifFalse : string -> IDFColumn Parameters
- data  IDFColumn
 - A column.
 - function  FuncString, Boolean
 - A function that takes a string and returns a boolean.
 - ifTrue  String
 - Value in case of true.
 - ifFalse  String
 - Value in case of false.
 
Return Value
IDFColumnA new column.
See Also