Back to API Home

Checks whether a condition is met, and returns one value if trueTruetruetrue (True in Visual Basic), and another value if falseFalsefalsefalse (False in Visual Basic).

Namespace: Dundas.Dashboard.Business.Utility
Assembly: Dundas.Dashboard.Client (in Dundas.Dashboard.Client.dll) Version: 5.0.0.0 (5.5.0.1000)

Syntax

C#
public static double If(
	bool condition,
	Nullable<double> valueIfTrue,
	Nullable<double> valueIfFalse
)
Visual Basic
Public Shared Function If ( 
	condition As Boolean,
	valueIfTrue As Nullable(Of Double),
	valueIfFalse As Nullable(Of Double)
) As Double

Parameters

condition
Type: System..::..Boolean
The condition.
valueIfTrue
Type: System..::..Nullable<(Of <(<'Double>)>)>
The value to return if the condition is trueTruetruetrue (True in Visual Basic).
valueIfFalse
Type: System..::..Nullable<(Of <(<'Double>)>)>
The value to return if the condition is falseFalsefalsefalse (False in Visual Basic).

Return Value

Type: Double
The value.

See Also