Trigger if text variable contains
Oct 23, 2018
I have a text entry box that changes a text variable. I want the state on an object to change when/if this variable CONTAINS a certain word i.e. the learner could write a longer sentence but all that matters is that this certain word is there. Is this possible? I'm trying to avoid having to think up / input all the possible variations as this seems impossible.
For example -
If the learner writes a sentence that contains the word tree, a picture of a tree that is hidden becomes normal. Regardless of if they have just written 'tree' or 'the tree has leaves' and so on.
Thanks!
2 Replies
I had done something similar a long time ago, using Javascript. See attached the .story file.
Thanks Michael, that's really useful!
This discussion is closed. You can start a new discussion or contact Articulate Support.