Trinity Inventory

version 4/080708 by Mikael Segercrantz

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 5g - Deliver second-level inventory list rule

    A carry out taking inventory rule (this is the deliver second-level inventory list rule):
        let item be a random unmentioned non-empty thing encased by something mentioned;
        if item is nothing, let item be a random unmentioned empty empty-listed thing encased by something mentioned;
        while item is a thing:
            if the contents of item are visible:
                if the number of listed when carried things encased by the item is at least one, carry out the inventory listing the contents activity with the item;
                if the number of listed when carried things encased by the item is zero and the item is empty-listed, carry out the inventory listing the contents activity with the item;
            now the item is mentioned;
            let item be a random unmentioned non-empty thing encased by something mentioned;
            if item is nothing, let item be a random unmentioned empty empty-listed thing encased by something mentioned;
        say ". [run paragraph on]";