WebCenter Interaction API  
 

IConditionServerType.Compare Method 

Compares the value given to the one that is in the environmnent hashtable. When the expression engine comes upon a condition, it retrieves the appropriate condition type and calls this method to compare the value of the condition with the current value in the user's environment. The result of the comparison determines whether the condition has been met. NOTE: Any exception thrown from this method will be caught and discarded. If an exception is caught, it will be considered a return value of FALSE.

bool Compare(
   XPHashtable htUserEnvironment,
   IValue conditionValue,
   XPStringBuilder sbDebugText
);

Parameters

htUserEnvironment
- hashtable of values describing the current user's environment
conditionValue
- the value to be compared against the current user's environment
sbDebugText
- StringBuilder that will keep track of the engine's execution path; will be null if debug mode is turned off

Return Value

true if the value is equal to the one found in the hashtable, false otherwise

See Also

IConditionServerType Interface | com.plumtree.server.condition Namespace