TextEntry Variable - Can I have a keywords Lookup instead of exact match

Jul 09, 2021

Hi,

I am wondering if it is possible to have a textentry trigger that isn't looking for an exact match in the textentry field but instead as long as keywords are used in the textentry field it will fulfill the requirements of the trigger. At the moment I can only see capabilities for "textentry =" or "textentry does not =" I suppose what I am after here is "textentry contains".

Is this possible or is there a workaround?

Any help greatly appreciated :)

2 Replies
Math Notermans

With a little Javascript this is easy to solve. Default not in Storyline though.
Here is a working sample.

Basically this line of code does the trick...
inputString.includes("text2lookfor");

This returns true if the str looking for is found. Else it returns false
The added sample has some variables that get set and read by script and works completely.