# Check if values contain this

**URL:** <https://forum.kirupa.com/t/check-if-values-contain-this/199418>\
**Category:** flash\
**Created:** [September 2, 2006, 6:03am UTC](https://forum.kirupa.com/t/check-if-values-contain-this/199418 "2006-09-02T06:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesleuth](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@thesleuth](https://forum.kirupa.com/u/thesleuth)\
**Post date:** [September 2, 2006, 6:03am UTC](https://forum.kirupa.com/t/check-if-values-contain-this/199418/1 "2006-09-02T06:03:30Z")

</div>

Is there a script which will check if a certain text or number is in a value. I am adding a ip blocker onto my flash document, so let say I want to block a user with ip of ‘100.200.30.4’ and I want an actionscript that checks if the ip address contains 100.200, if it does, it will block the user. How do I do that?
