AS3 ? Conditional

You can use the following line of code as a if/else statement.

x = ( a == b ) ? y : z;

if(a==b){
x=y
}
else{
x=z;
}

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.