Class RangeCondition
Condition that is met when a state value is within a specified range.
Inheritance
RangeCondition
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public class RangeCondition : Condition
Constructors
RangeCondition()
Declaration
Fields
inclusive
Declaration
Field Value
maxValue
Declaration
Field Value
minValue
Declaration
Field Value
stateKey
Declaration
public UnityStateKey stateKey
Field Value
Properties
DisplayName
Gets the display name for this condition type (used in dropdown).
Declaration
public override string DisplayName { get; }
Property Value
Overrides
Methods
IsMet(in UnityProceduralContext)
Evaluates whether this condition is currently met.
Declaration
public override bool IsMet(in UnityProceduralContext ctx)
Parameters
| Type |
Name |
Description |
| UnityProceduralContext |
ctx |
The procedural context containing state and time information.
|
Returns
| Type |
Description |
| bool |
True if the condition is met, false otherwise.
|
Overrides
Validate()
Validates the condition configuration.
Declaration
public override string Validate()
Returns
| Type |
Description |
| string |
Error message if invalid, null if valid.
|
Overrides