In 8.13 of Writing with Inform, two specific wordings are given:
if the genie’s lamp is on the table …
if the genie’s lamp is on top of the table …
However, one of my students sent me this code:
[code]The Learning Lab is a room.
A supporter called the grill is in the Learning Lab.
A steak is on the grill.
Before waiting in the Learning Lab (this is the objects supporting objects test rule):
if the steak is on the grill, say “Steak confirmed as on the grill.”;
if the steak is on top of the grill, say “Steak confirmed as on top of the grill.”[/code]
This results in a error:
Problem. In the sentence ‘if the steak is on top of the grill, say “Steak confirmed as on top of the grill.”’ , I was expecting to read a condition, but instead found some text that I couldn’t understand - ‘steak is on top of the grill’.
I’m not sure why this error is coming up in this context since 6.11 in the manual says “the relationship here is one called support (being on top of, in effect).” So it seems like the grill (which is a supporter) is the right kind for this check. What am I missing?