I have some indexed text, that I got by performing various regex stuff on the “topic understood,” and now I want see if that indexed text matches some text in a table. But I can’t seem to make that comparison, since they are different types (and honestly I’m a little shaky on “matches” versus “is listed” for this case).
So, here’s a simplified example:
Table 1 Topic "duck" "boat/skiff/sailboat" "flower/daisy/posy" Floobling is an action applying to one topic. Understand "flooble [text]" as floobling. Carry out floobling: let thingtoflooble be indexed text; let floobler be indexed text; if the topic understood matches the regular expression ".*((?= with)": let thingtoflooble be "[text matching regular expression]"; if the topic understood matches the regular expression "(?<=with )).*": let floobler be "[text matching regular expression]"; [alternate forms of the flooble grammar would be here] [here's the part that doesn't work:] if thingtoflooble is a topic listed in Table 1: say "Now there's a thing I know how to flooble!"; else: say "If such a thing exists, I don't know how to flooble it."
The compiler complains, naturally, that
I know that indexed text can’t just be magically turned back into text (or at least, the docs emphasize this), but it seems like there should be a way to compare the two, so I’m clearly missing something. Telling the table it contains indexed text also seems not to work.
[As a side question: I can “Carry out floobling” but could not figure out how to “Instead of floobling something” – “instead of floobling some text” and “instead of floobling a topic” also seem not to work. What’s the generic “instead” for an action involving text?]