Checking if Variables contain a certain stringChecking if Variables contain a certain stringhttps://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&threadId=3868632024-03-29T08:51:57Z2024-03-29T08:51:57ZRE: Checking if Variables contain a certain stringStephen Medwayhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=3874202019-09-06T08:35:56Z2019-09-06T08:35:56ZThanks Rob, I will give that a go<br /><br />StephenStephen Medway2019-09-06T08:35:56ZRE: Checking if Variables contain a certain stringRob Pennhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=3868842019-09-03T16:29:52Z2019-09-02T11:02:11ZHi Stephen,<br /><br />Yes, it's possible to check if the variable contains a piece of text. You're very close - using the "contains" action block, you just need to use your variable for the "text" parameter, and use the text you want to look for in the "piece" parameter. This screen shot shows a couple examples.<br /><br />Let us know if that addresses your need.<br /><br />RobRob Penn2019-09-02T11:02:11ZChecking if Variables contain a certain stringStephen Medwayhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=3868622019-09-02T10:32:38Z2019-09-02T10:32:38ZIs it possible to use the "contains" option for variables as opposed to text input boxes?<br /><br />I would like to store the text input string on one page and do some analysis on another (to show a tick box on a results page), but the contains option doesn't seem to be available.<br />(An example would be a variable called Test with a string of text "long text string (about 200 characters) containing the word Since" and searching for whether the Test variable contains the word Since to give a true or false value - showing a tick or a cross on a feedback page)<br /><br />There is an option under Advanced / Text but this has a connector with both "Contains" and "Piece", and I am not too sure what the "Piece" bit means and can't find any reference to it in the help materials.<br /><br />I know that an alternative would be to do the analysis on the original text input screen (and allocate variables at that stage), so that is my fallback option if we can't get it to work.<br /><br />Any help would be greatly appreciated.<br /><br />ThanksStephen Medway2019-09-02T10:32:38Z