I’m looking for a concise way to say a thing’s property in relation to another thing – apologies if that’s a little confusing, I’m still getting the basics of I7 figured out. I’m looking for something concise as I have a lot of things and I’m trying to minimize extra typing. Currently I’m generating I7 code with regular expression matching in a separate text editor, but I’m wondering if there’s an easier way to just write it in I7.
What I have are a bunch of things with properties containing text, like this:
A tool has some text called vs concertina wire. A tool has some text called vs electric fence. A tool has some text called vs watchtower. A tool has some text called vs dogs. ....
Where a tool is a kind of thing. Then I want to say this property when comparing a particular tool against another thing, if the particular tool has a non-empty property. So it looks like this:
The silk map cancels exposed terrain. The vs exposed terrain of the silk map is "testing."
Where ‘canceling’ is a relation between tools and another kind, obstacles (of which exposed terrain is a member).
Currently I’m getting at this in a big switch statement, that looks like:
To say (T - a tool) vs (O - an obstacle): if O is: -- concertina wire: say vs concertina wire of T; -- electric fence: say vs electric fence of T; ....
Then a test of all of this looks like:
When play begins: repeat through the Table of Enemy Obstacles: if the silk map cancels the obstacle entry: say the silk map vs obstacle entry.
So, to make a long story short – is there an easier way to ‘say the silk map vs obstacle entry’?