Posted By

sidneydekoning on 05/14/09


Tagged


Versions (?)

Shorthand code for assigning a value


 / Published in: ActionScript 3
 

  1. // The value being set needs to be of the same data type of the variable. You cannot assign a String to an int
  2.  
  3. var someVar:String = (myCondition) ? "if true" : "if false";

Report this snippet  

You need to login to post a comment.