saealib.Branch#

class saealib.Branch(condition, *, then, else_=None, name='')[source]#

Bases: _ControlValue

Select one of two structural bodies using a condition.

Parameters:
  • condition (Condition)

  • then (PipelineEntry)

  • else_ (PipelineEntry | None)

  • name (str)

Methods

__init__

to_pseudocode

Render this branch as a lightweight pseudocode line.

to_text

Render this branch as a single plain-text line.

Method Details

Branch.__init__(condition, *, then, else_=None, name='')[source]#
Parameters:
Return type:

None

Branch.to_pseudocode(*, expand=False, indent=0)[source]#

Render this branch as a lightweight pseudocode line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str

Branch.to_text(*, expand=False, indent=0)[source]#

Render this branch as a single plain-text line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str