# The beginning of a string

**URL:** <https://forum.kirupa.com/t/the-beginning-of-a-string/206136>\
**Category:** flash\
**Created:** [November 5, 2006, 7:51pm UTC](https://forum.kirupa.com/t/the-beginning-of-a-string/206136 "2006-11-05T19:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [November 5, 2006, 7:51pm UTC](https://forum.kirupa.com/t/the-beginning-of-a-string/206136/1 "2006-11-05T19:51:39Z")

</div>

Is it possible (and if so how) to write an _if-statement_ that looks for the first part of a string

Example

```auto

if (textF.text == "/page/" + etc.){
    // do something
}
else if (textF.text == "/item/" + etc.){
   // do something else
}

```

Obviously, _+ etc._ cannot be used, but I just used it to communicate what I’m wanting to do.
