# Code Help Please -\>\["IF VARIABLE1 begins with "XYZ"\]?

**URL:** https://forum.kirupa.com/t/code-help-please-if-variable1-begins-with-xyz/162236
**Category:** Uncategorized
**Created:** [September 11, 2005, 5:13am UTC](https://forum.kirupa.com/t/code-help-please-if-variable1-begins-with-xyz/162236 "2005-09-11T05:13:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kaanuki](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kaanuki](https://forum.kirupa.com/u/kaanuki)
#### Post date: [September 11, 2005, 5:13am UTC](https://forum.kirupa.com/t/code-help-please-if-variable1-begins-with-xyz/162236/1 "2005-09-11T05:13:30Z")

</div>

Hello, all.

I’m having trouble creating a conditional statement. I want to direct users to different Scenes / frames based on the first three numbers of their 7-digit assigned account nos.

I cant seem to figure out how to write the condition:  
"IF VARIABLE1 begins with “555” gotoandStop…

Any help would be appreciated.

Thank you.

-kaanuki-
