Because of the possibility for syntactic confusion, you canât use âorâ like this in Inform 7. (Thereâs a feature request for this currently active, that explains some of the difficulties involved.) In the meantime, you need to write out your request in full:
If the current answer is "dust" or current answer is "Dust" or current answer is "dirt" or current answer is "Dirt"...
However, you might want to instead use the tools for matching text strings to do this. (See the chapter âAdvanced Textâ in the docs.) So, for instance, you could use a regular expression:
if current answer matches the regular expression "(dust|dirt)", case insensitively:
(Also note that in z-code games, the playerâs input is going to be all lower-case anyway; you can only preserve the casing of a playerâs command in Glulx.)
This is completely off the top of my head as I donât have Inform 7 in front of me, and I donât know what extension youâre working with (if any), but I think the correct syntax might be:
if the current answer is "dust" or the current answer is "dirt":
I donât think you need to worry about capital letters when it comes to user input, either.
Topics should match case-insensitively even under Glulx. Regexps may be different. I thought the input line was downcased before any processing, but maybe thatâs gotten more complicated.
BigBonsai,
Assuming you have dust as a thing, then you might find it simpler to say
Understand âdirtâ as dust. The parser will deal with variations.
-Falsoon