I have an {if:} statement that I use in multiple snippets. I'm trying to figure out a way to search my snippet for a specific word, then have it trigger a nested {if:} statement that would change the wording in my original {if:} statement. I was thinking testregex could do this, but it seems that the wording has to be inside a form to work with testregex. Essentially, this is what I would want the snippets to look like.
Snippet #1: Your next assignment is lesson 1.01. It identifies the elements of a plot and defines a universal theme. You will use these concepts in multiple lessons going forward. Make sure you take very good notes.
Snippet #2: Here's what's coming up next. Lesson 1.01 identifies the elements of a plot and defines a universal theme. You will use these concepts in multiple lessons going forward. Make sure you take very good notes.
Original {if:} Statement: {if: Lesson #
== "1.01"}Lesson 1.01 identifies the elements of a plot and defines a universal theme. You will use these concepts in multiple lessons going forward. Make sure you take very good notes.{endif}
New {if:} Statement: {if: Lesson #
== "1.01"} {if: ?}It{else}Lesson 1.01{endif} identifies the elements of a plot and defines a universal theme. You will use these concepts in multiple lessons going forward. Make sure you take very good notes.{endif}
I can't figure out what I can place in the "?" position of the nested {if:} statement above that will search the rest of my snippet for a keyword without the keyword being in a form. For example, having it search for the word "lesson" in the previous sentence. Is this possible?