The Portrate Interview Engine

LogicalORRule.Evaluate Method 

Implements a short-circuited OR operator where each display rule, as they appear in the configuration, is evaluated for displayability. If any one of them is displayable, then true is returned. If the context is NULL, then TRUE is returned.

[Visual Basic]
Overrides Public Function Evaluate( _ 
   ByVal ctx As DataContext _ 
) _
    Implements ILogicalRule.Evaluate As Boolean
[C#]
public override bool Evaluate(
   DataContext ctx
);
[C++]
public: bool Evaluate(
   DataContext* ctx
);
[JScript]
public override function Evaluate(
   DataContext ctx
): bool;

Parameters

ctx
The current data context

Return Value

True if any nested rules evaluate to true, and false otherwise.

Implements

ILogicalRule.Evaluate

See Also

LogicalORRule Class | Portrate.Interview.Model.Rules Namespace