| Chapter 11: Phrases |

| 11.14. New conditions, new adjectives

We can create new conditions by defining a phrase with "to decide whether" (or equivalently "to decide if"):

> To decide whether danger lurks:
> if in darkness then decide yes;
> if the Control Room has been visited then decide no;
> decide yes.

As can be seen, such a phrase must always resolve itself with "yes" or "no": the first to be reached will be the answer. For instance, if the player is indeed in darkness, the decision is "yes" because the "decide yes" stops the process right there. We can now write, for instance,

> if danger lurks then ...

In fact, "danger lurks" is now a condition as good as any other, and can be used wherever a condition would be given. Rules can apply only "when danger lurks", for instance.

We can also supply definitions of adjectives like this. So far, new adjectives have been defined like so:

> Definition: a supporter is occupied if it is described and something is on it.

If we want to give a definition which involves more complex logic, we can use a special form allowing us to make arbitrary decisions. In this longer format, the same definition would look like so:

> Definition: a supporter is occupied:
> if it is undescribed then decide no;
> if something is on it then decide yes;
> decide no.

Here "it" refers to the supporter in question. Note that there are now two colons in this sentence, one after "Definition", the other after the clause being defined. But that apart, it's a phrase like any other: it must end in "yes" or "no" just as the "danger lurks" example must.

147
| Example Owen's Law OUT always means "move to an outdoors room, or else to a room with more exits than this one has"; IN always means the opposite.

Previous | Contents | Next