Skip to content

Interface IfNode

Source: shellAST.ts

Represents a conditional branching structure.

Extends

Properties

redirections?

optional redirections?: RedirectionNode[]

An optional list of redirections to apply to this execution unit.

Inherited from

BaseRedirectionNode.redirections


type

type: If

The type of this node.

Overrides

BaseRedirectionNode.type


ifBranch

ifBranch: ConditionalBlockNode

The primary conditional branch.


elifBranches

elifBranches: ConditionalBlockNode[]

An array of additional conditional branches.


elseBranch

elseBranch: Block

The block to execute if no conditions are met.

Built by Prozilla