# Shorthand AS

**URL:** <https://forum.kirupa.com/t/shorthand-as/280017>\
**Category:** flash\
**Created:** [January 21, 2009, 5:29pm UTC](https://forum.kirupa.com/t/shorthand-as/280017 "2009-01-21T17:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbstanley](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Post date:** [January 21, 2009, 5:29pm UTC](https://forum.kirupa.com/t/shorthand-as/280017/1 "2009-01-21T17:29:58Z")

</div>

I’m trying to get better at coding but I’m having a hard time with this one.

How do I turn this into shorthand:

```auto

for(i in arrTours){
    if(arrTours*.ID == tourName){
        return i;
    }
}

```

Here is my try, but no go:

```auto

for(i in arrTours){
    arrTours*.ID == tourName ? return i : null;
}

```
