Difference between revisions of "Group Functions"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
The list functions operate on a list of item keys from a group, the multi-item references %characters% and %objects%, and functions which return a list of items worn by, contained inside, placed on top of, or held by another character or object.
 +
 
== Count ==
 
== Count ==
 
This function simply counts the number of item keys in the list and returns the number of items as an integer number.
 
This function simply counts the number of item keys in the list and returns the number of items as an integer number.
Line 5: Line 7:
  
 
== List ==
 
== List ==
 +
The list function is used to format a list of items for output. It reads the name of each item and prints them in a comma-delimited list with "and" or "or" inserted between the last two items.
  
 
=== True/False ===
 
=== True/False ===

Revision as of 09:45, 21 November 2012

The list functions operate on a list of item keys from a group, the multi-item references %characters% and %objects%, and functions which return a list of items worn by, contained inside, placed on top of, or held by another character or object.

Count

This function simply counts the number of item keys in the list and returns the number of items as an integer number.

This number can then be printed or used in an expression

List

The list function is used to format a list of items for output. It reads the name of each item and prints them in a comma-delimited list with "and" or "or" inserted between the last two items.

True/False



Definite/Indefinite



And/Or




<<< Location functionsObject-oriented functionsExpressions >>>