Class ConditionalBlock

A Block that puts creates a conditional structure.

Info:

  • License: MIT
  • Author: Richard Voelker

Methods

ConditionalBlock.AddCondition (self, condition) Adds a condition to the list of conditions.
ConditionalBlock.AddChild (self, child) Adds a child Block or Line to the latest conditional Block, as created by AddCondition.


Methods

ConditionalBlock.AddCondition (self, condition)
Adds a condition to the list of conditions. A new SpaceBlock is added to this Block as well, and any AddChild calls made after will be added to the new SpaceBlock.

Parameters:

  • self ConditionalBlock
  • condition string

    [opt=""] The condition of if

    statement. Leave this blank to add an else statement.
    
ConditionalBlock.AddChild (self, child)
Adds a child Block or Line to the latest conditional Block, as created by AddCondition.

Parameters:

generated by LDoc 1.4.3 Last updated 2016-07-26 17:10:04