Create a simple if-then-else clause.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function CreateSimpleIf( _ 
   ByVal cond As NetricsPredicate,  _ 
   ByVal then_case As NetricsPredicate,  _ 
   ByVal else_case As NetricsPredicate _ 
) As NetricsPredicate
C#
public static NetricsPredicate CreateSimpleIf(
   NetricsPredicate cond,
   NetricsPredicate then_case,
   NetricsPredicate else_case
)
C++
public:
 static NetricsPredicate CreateSimpleIf(
   NetricsPredicate cond,
   NetricsPredicate then_case,
   NetricsPredicate else_case
)
J#
public static NetricsPredicate CreateSimpleIf(
   NetricsPredicate cond,
   NetricsPredicate then_case,
   NetricsPredicate else_case
)
JScript
public static  function CreateSimpleIf(
   cond : NetricsPredicate,
   then_case : NetricsPredicate,
   else_case : NetricsPredicate
) : NetricsPredicate

Parameters

cond
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.

See Also