Skip to main content

ConditionBlocksNamespace class

📖 Description

The ConditionBlocksNamespace class holds all the condition blocks for a runner namespace. It used to supply ConditionBlock instances for conditions.

🗃️ Fields


🏷️ identifier

Contains the namespace identifier.

Type

string

▶️ Methods


🔧 create

Creates a new instance of a condition block for the supplied condition and context.

Signature

create(condition: Condition, context: Context): ConditionBlock | undefined

Parameters

NameTypeOptionalDescription
conditionConditionNoReference to the condition.
contextContextNoReference to the context.

Return value

Returns a ConditionBlock instance or undefined if the block is invalid.