Create a simple if-then-else clause.
Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)
Syntax
| Visual Basic (Declaration) |
|---|
| Public Shared Function CreateSimpleIf( _ ByVal condition As NetricsPredicate, _ ByVal then_case As NetricsPredicate, _ ByVal else_case As NetricsPredicate _ ) As NetricsPredicate |
| C# |
|---|
| public static NetricsPredicate CreateSimpleIf( NetricsPredicate condition, NetricsPredicate then_case, NetricsPredicate else_case ) |
| C++ |
|---|
| public: static NetricsPredicate CreateSimpleIf( NetricsPredicate condition, NetricsPredicate then_case, NetricsPredicate else_case ) |
| J# |
|---|
| public static NetricsPredicate CreateSimpleIf( NetricsPredicate condition, NetricsPredicate then_case, NetricsPredicate else_case ) |
| JScript |
|---|
| public static
function CreateSimpleIf( condition : NetricsPredicate, then_case : NetricsPredicate, else_case : NetricsPredicate ) : NetricsPredicate |
Parameters
- condition
- the conditional expression.
- then_case
- the expression value to use if cond is true.
- else_case
- the expression value to use if cond is false.
Remarks
This creates a simple if-then-else clause using the predicate if function.