# Compile Code Error

**URL:** <https://forum.kirupa.com/t/compile-code-error/125807>\
**Category:** Uncategorized\
**Created:** [October 17, 2004, 11:08pm UTC](https://forum.kirupa.com/t/compile-code-error/125807 "2004-10-17T23:08:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vietmass](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@vietmass](https://forum.kirupa.com/u/vietmass)\
**Post date:** [October 17, 2004, 11:08pm UTC](https://forum.kirupa.com/t/compile-code-error/125807/1 "2004-10-17T23:08:22Z")

</div>

function test(id)  
{  
var m = id;  
k = 0;  
if (k \< data.length)  
{  
} // end if  
data[k] != m ? (k++) : **()**;  
return(data[k] != m ? (k++) : **()**);  
} // End of the function

I get this test function from a flash file. But i don’t know why i can’t compile it from Flash MX 2004 .

**Error** Symbol=Symbol 91, layer=Action Layer, frame=1:Line 8: Unexpected ‘)’ encountered  
dad[k] != m ? (k++) : ();  
**Error** Symbol=Symbol 91, layer=Action Layer, frame=1:Line 9: ‘)’ expected  
return(data[k] != m ? (k++) : ());

Can anyone tell me what actually software to compile the above function which is understand ( ) ??
