# ConditionalOnExpression constructor

const ConditionalOnExpression(

1. Object expression

)

The `ConditionalOnExpression` annotation in Jetleaf allows developers to conditionally process a class or method based on a runtime expression.

This annotation uses `OnExpressionCondition` to evaluate the expression provided as a string. If the expression evaluates to `true`, the annotated element is processed.

### Usage Example:

    @ConditionalOnExpression('env["ENABLE_FEATURE"] == "true"')
    class FeaturePod {
      // This pod will only be loaded if the expression evaluates to true
    }

## Implementation

    const ConditionalOnExpression(this.expression);