# AS short syntax help

**URL:** https://forum.kirupa.com/t/as-short-syntax-help/85917
**Category:** flash
**Created:** [April 8, 2005, 12:09pm UTC](https://forum.kirupa.com/t/as-short-syntax-help/85917 "2005-04-08T12:09:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superfly999a](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@superfly999a](https://forum.kirupa.com/u/superfly999a)
#### Post date: [April 8, 2005, 12:09pm UTC](https://forum.kirupa.com/t/as-short-syntax-help/85917/1 "2005-04-08T12:09:19Z")

</div>

New Member here, hey guys.  
Need a lil help with ActionScript here.

Example:  
[font=Verdana, Arial, Helvetica][size=2][color=Blue]if (monkeyBone == “good”)

{

```
var toy = "videogames";

```

} else {

```
var toy = "rocks";

```

}[/color][/size][/font]

can be written as

[font=Verdana, Arial, Helvetica][size=2][color=Blue] ([/color][/size][/font][font=Verdana, Arial, Helvetica][size=2][color=Blue]monkeyBone[/color][/size][/font][font=Verdana, Arial, Helvetica][size=2][color=Blue]==“good”) ? “videogames” : “rocks”;  
[/color][/size][/font]  
I find this useful,  
I had seen a forum post where I found many such short cuts, sadly lost the link. ☹

Another Example:  
[font=Verdana, Arial, Helvetica][size=2]  
[color=Blue]if (monkey\_behavior == “good”)

{

```
var toy = "videogames";

```

[/color][/size][/font][color=Blue]}  
[/color]  
can be written as

[font=Verdana, Arial, Helvetica][size=2][color=Blue]if (monkey\_behavior == “good”) var toy = “videogames”;[/color]

[/size][/font]Does anyone have a link to any such page which lists it all?  
Do we have this here?  
Can any one of you contribute to this and add more?

Luke
