# How to write this if statement?

**URL:** <https://forum.kirupa.com/t/how-to-write-this-if-statement/206489>\
**Category:** flash\
**Created:** [November 8, 2006, 7:12pm UTC](https://forum.kirupa.com/t/how-to-write-this-if-statement/206489 "2006-11-08T19:12:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [November 8, 2006, 7:12pm UTC](https://forum.kirupa.com/t/how-to-write-this-if-statement/206489/1 "2006-11-08T19:12:37Z")

</div>

If “num” and “itemnum” is 1, do this. How do I write this? This is just a long shot…

```auto

function buttonAction () {
	if ((num == 1) || (itemnum == 1)) {
		_level0.mcl.loadClip ("main1/sub1.swf", 50);
	} else {
	_level0.mcl.loadClip ("sub.swf", 50);
	}
}

```
