# Is Text1 included in Text2?

**URL:** https://www.finalbuilder.com/forums/t/is-text1-included-in-text2/224
**Category:** Discussion
**Created:** [October 12, 2006, 12:56pm UTC](https://www.finalbuilder.com/forums/t/is-text1-included-in-text2/224 "2006-10-12T12:56:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![obeltrami](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/o/c5a1d2/32.png) [@obeltrami](https://www.finalbuilder.com/forums/u/obeltrami)
#### Post date: [October 12, 2006, 12:56pm UTC](https://www.finalbuilder.com/forums/t/is-text1-included-in-text2/224/1 "2006-10-12T12:56:51Z")

</div>

I am trying to see if %Text1% is included in %Text 2% but I am not getting anywhere.  
  
Trying the simplistic %Text1% \< %Text 2% does not work.  
Trying to write IsIncluded = (pos(Text1, Text2) \> 0) does not either.  
  
Any suggestions ?  
  
Best regards,

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [October 13, 2006, 1:13am UTC](https://www.finalbuilder.com/forums/t/is-text1-included-in-text2/224/2 "2006-10-13T01:13:54Z")

</div>

Hi Olivier,  
  
You can use the ‘Text Find’ action to search in %Test 2% for any strings matching %Test1%.  
  
Regards, Paul.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [October 13, 2006, 1:20am UTC](https://www.finalbuilder.com/forums/t/is-text1-included-in-text2/224/3 "2006-10-13T01:20:19Z")

</div>

Olivier,  
  
As an alternative to Text Find, if you are working in a script event then you should be able to either use VBScript expression (InStr(Text2, Text1) \> 0), similar to the one you wrote above or the JScript expression (Text2.indexOf(Text1) \> -1), depending on which script language you are using.  
  
Regards,  
  
Angus
