Home > @idealeap/pipeline > Pipe > shouldExecute
Pipe.shouldExecute() method
Sets a dynamic dependency check function that returns a boolean to determine whether the pipe should be executed.
Signature:
typescript
shouldExecute(context: PipelineContext): boolean;shouldExecute(context: PipelineContext): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| context | PipelineContext | The current pipeline context. |
Returns:
boolean
A boolean indicating whether the pipe should be executed.