# Shorthand Actionscript

**URL:** <https://forum.kirupa.com/t/shorthand-actionscript/178602>\
**Category:** flash\
**Created:** [February 12, 2006, 1:11pm UTC](https://forum.kirupa.com/t/shorthand-actionscript/178602 "2006-02-12T13:11:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)\
**Post date:** [February 12, 2006, 1:11pm UTC](https://forum.kirupa.com/t/shorthand-actionscript/178602/1 "2006-02-12T13:11:57Z")

</div>

After the 25 lines of less competition, i saw a lot of people using a lot of different types of actionscripting, using ? and : alot. I know this is a type of shorthand (per say) way of writing actionscript, and was trying to look into a bit more. Would anybody willing to contribute to some of the usefull shorthands they know.

From what i can figure:[AS]if (condition){  
foo = “if statement”  
} else {  
foo = “if statement”  
}[/AS]can be written as AS ? foo = “if statement” : foo = “else statement”;[/AS]

Thanks

-Aussie Devil :thumb2:
