# AS2:: String query

**URL:** <https://forum.kirupa.com/t/as2-string-query/245191>\
**Category:** flash\
**Created:** [November 27, 2007, 10:12am UTC](https://forum.kirupa.com/t/as2-string-query/245191 "2007-11-27T10:12:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)\
**Post date:** [November 27, 2007, 10:12am UTC](https://forum.kirupa.com/t/as2-string-query/245191/1 "2007-11-27T10:12:55Z")

</div>

I have a string that looks something like this:

TestString - “1,0,0,0,0,0,1,0”

I need to create some sort of loop (I think) to search though the string and look to see if it contains any 1’s.

How was I go about this?

Any help would be great thanks. :mountie:
