Skip to content

Commit

Permalink
Fix for Mantis bug 1996
Browse files Browse the repository at this point in the history
  • Loading branch information
ganelson committed Apr 10, 2022
1 parent 4a6c65d commit a26eb1f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions resources/Documentation/Writing with Inform.txt
Expand Up @@ -10070,13 +10070,13 @@ results in "Fe". But we have to be careful:

This is not allowed (it produces an error at run-time), because there is no row with atomic number 27 in this rather limited table. We can check this in advance with the condition:

if there is an element corresponding to an atomic number of 27 in the Table of Standard Elements ...
if there is an element corresponding to an atomic number of 27 in the Table of Selected Elements ...

Or more simply:

if there is an atomic number of 27 in the Table of Standard Elements ...
if there is an atomic number of 27 in the Table of Selected Elements ...

The condition "if there is..." can be used with any reference to a table entry: for instance, "if there is a symbol in row 5 of the Table of Standard Elements" would be false, because there are only four rows.
The condition "if there is..." can be used with any reference to a table entry: for instance, "if there is a symbol in row 5 of the Table of Selected Elements" would be false, because there are only four rows.

[x] Changing entries

Expand Down Expand Up @@ -10267,15 +10267,15 @@ In effect, blank entries don't exist. "--" is not a value, but only a hole where
{defn ph_thereis}if there is (a table entry):
This condition is true if the entry referred to exists, that is, that is, the space for it in the table is not blank. Examples:

if there is a symbol corresponding to an atomic number of 30 in the Table of Standard Elements ...
if there is an atomic number in row 2 of the Table of Standard Elements ...
if there is a symbol corresponding to an atomic number of 30 in the Table of Selected Elements ...
if there is an atomic number in row 2 of the Table of Selected Elements ...
{end}

{defn ph_thereisno}if there is no (a table entry):
This condition is true if the entry referred to does not exist, that is, the space for it in the table is blank. Examples:

if there is no symbol corresponding to an atomic number of 30 in the Table of Standard Elements ...
if there is no atomic number in row 2 of the Table of Standard Elements ...
if there is no symbol corresponding to an atomic number of 30 in the Table of Selected Elements ...
if there is no atomic number in row 2 of the Table of Selected Elements ...
{end}

[x] Blank columns
Expand Down

0 comments on commit a26eb1f

Please sign in to comment.