# Logic conditions for questions with text input

We offer some questions that accept text input, such as Text box, Multiple Text box, Comment box, Email, and Name. For these questions, participants must type their in input, which can be letters, words, numbers, or even special characters. This type of open-ended questions provide endless answering possibilities, which in turn can make it quite tricky to apply logics for such questions. But we have engineered a few ways for analyzing the answers and triggering a logic flow. For text-based questions, you will have the following conditions, explained further down.

Choosing any of them enables the textbox presented below this choice list, in which you can type one or several items. These items can be any letter, word, phrase, number, or combination of characters.

The following illustration shows different logic conditions for a text based question. You can find further information about each of these options.

Logic Flow #1

IF

*What pet(s) do you have?
Choose a condition
• starts with
• ends with
• contains
• does not contain
• contains all of the following
Type what to match here…

The example above shows a required question with text input. Conditions (rules) for questions with text input are displayed below the question. Read more about each logic condition further down.
How to:
After choosing any of the options which are explained further down, you get the possibility of adding new items, in the input box right below the options. To create distinct items, just type whatever is in your mind and then press the (Return key) on your keyboard. This creates one “item”, from what you have typed. An “item” in this case, can be a word, several words together, a number, or basically anything.

Note:
Our system does not take in consideration capital letters in items that you type! So if you type for example the word “cat” in the condition, our system will trigger the logic, no matter if the respondent has typed “CAT”, “Cat”, or “caT”.

## starts with

By choosing this one, you are asking our system to react and trigger the logic, if a participant starts their response with “any” of the items (words, phrases, etc…) that you provide here. In other words, you are putting an “OR” between each item that you type.

Logic Flow #1

IF

*What are your 3 most favorite pets?
starts with
dog

or

cat

Type one or more words here…

THEN
Choose an action

The example above shows a required question with text input. Tags which are added by survey creator state that, if a respondent starts his/her answer with the words “dog” or “cat”, this logic rule shall be triggered.
Note:

Of course you can choose to type only one single item. In that case, our system only looks for and reacts to that one specific item.

## ends with

Just like the previous option, anything you type here is the criteria for our system. However this time, the system only cares about how respondents finish their answers. So, if we find “any” one of the items that you have typed in the end of respondents’ input; then we trigger the logic. Just like the previous option, you are putting an “OR” between each item that you type.

Logic Flow #1

IF

*What are your 3 most favorite pets?
ends with
dog

or

cat

Type one or more words here…

THEN
Choose an action

The example above shows a required question with text input. Tags which are added by survey creator state that, if a respondent finishes his/her answer with the words “dog” or “cat”, this logic rule shall be triggered.
Note:

You can of course choose to type only one single item. In that case, our system only looks that one specific item at the end of the response. If that does exist there, then it reacts.

Note:

Please consider that people might end a sentence with a period sign, or exclamation mark, or any other character. You will have to include all possible ways of ending a sentence, if that is the case for your question!

## contains

As the name clearly explains, any of the items that are typed here will be a criteria for our system to react. But this time, these items can be anywhere in the response, at the beginning, in the end, or maybe in the middle of a long text. Here too, you are putting an “OR” between each item that you type.

Logic Flow #1

IF

*What are your 3 most favorite pets?
contains
dog

or

cat

Type one or more words here…

THEN
Choose an action

The example above shows a required question with text input. Tags which are added by survey creator state that, if a respondenthas any of the words “dog” or “cat” in his/her answer, this logic rule shall be triggered.
Note:

You can of course choose to type only one single item. In that case, our system only looks for that one specific item. If it does exist, then it reacts.

## does not contain

By choosing this condition, you are asking our system to look for certain words, phrases, numbers, or characters, and if they do NOT exist in respondent’s answer, then trigger a logic. Otherwise, just continue normally. Here as well, you are putting an “OR” between items that you type.

Logic Flow #1

IF

*What are your 3 most favorite pets?
does not contain
dog

or

cat

Type one or more words here…

THEN
Choose an action

The example above shows a required question with text input. Tags which are added by survey creator state that, if a respondent’s answer does NOT contain any of the words “dog” or “cat”, this logic rule shall be triggered.
Note:

You can of course choose to type only one single item. In that case, our system only looks for that one specific item, and if that doesn’t exist in the text, then it reacts.

## contains all of the following

This option is like the previous one, but the difference is that you are putting an “AND” between the items that you type. In other words, you are asking our system to find certain items, but only react if exactly all of them exist in the response text. So even if one of them is not typed by your respondent, the logic won’t be triggered.

Logic Flow #1

IF

*What are your 3 most favorite pets?
contains all of the following
dog

&

cat

Type what to match here…

THEN
Choose an action

The example above shows a required question with text input. Tags which are added by survey creator state that, if a respondent’s answer does contain both of the words “dog” and “cat”, this logic rule shall be triggered.
Note:

You can of course choose to type only one single item. In that case, our system only looks for that one specific item. If it does exist, then it reacts.

Become a Legend Now ;)

Make your 1st free online survey today!