Long time ago I wrote a blog post about creating such a condition testing if a variable contains some words, but it was still in the SWF period, which means that the example output is not displaying anymore. Here is the link:
https://blog.lilybiri.com/custom-short-answer-question
I try to explain a possible workflow in short:
- Create a multistate shape SS_Output with two states: first is empty, second has the variable associated with the Text Entry Box, which I will rename here to v_entry. Beware: when inserting the variable using the X button in the Character part of the shape, make sure to increase its length, because the default lenght of 50 will not be sufficient.
- I would prefer a Scrolling Text interaction over a TEB, but if you want a TEB, please make sure to activate the scroll bar and to resize the TEB.
- Advantage of the TEB is that it is an interactive object, which means that the Submit button (or its shortcut key) can trigger a Success action. TEB is not validated in this case.
- The Success event should trigger a conditional advanced (or shared) action, like this:
IF v_entry contains kaffe AND not sure if it is AND or OR?
v_entry contains og
Go to Next State SS_Output