Hybrid Choices

version 7 by AW Freyr

  • Home page
  • Beginning
  • Previous
  • Next



  • section e - Activating/Deactivating
    A page can be active or inactive. A page is usually active.
    A choice-switch rule for a page (called Z) (this is the don't display choices to inactive pages rule):
        if Z is inactive, rule fails.
    To activate (x - a page):
        now x is active.
    To deactivate (x - a page):
        now x is inactive
    To activate (x - a list of pages):
        repeat with Y running through X:
            now Y is active.
    To deactivate (x - a list of pages):
        repeat with Y running through X:
            now Y is inactive.
    To activate (x - a description of pages):
        repeat with Y running through X:
            if Y matches X:
                now Y is active.
    To deactivate (x - a description of pages):
        repeat with Y running through X:
            if Y matches X:
                now Y is inactive.
    [Page-activation relates various pages to various pages.
    Page-deactivation relates various pages to various pages.
    The verb to
    A page has a list of pages called the activated pages. The activated pages are usually {}.
    A page has a list of pages called the deactivated pages. The deactivated pages are usually {}.
    A page-toggle for a page (called X):
        if the activated pages of X is not {}:
            activate the activated pages of X;
        if the deactivated pages of X is not {}:
            deactivate the deactivated pages of X.]