Posted By

arpo on 04/09/09


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

sweetbabyyoung
gudeidea
weavermedia
alsodenn


Short if the else


 / Published in: ActionScript 3
 

  1. var s:String = "Hi!";
  2. var p:String = (s=="Hi!") ? "Welcome!" : "Goog Bye!";
  3. trace(p);

Report this snippet  

You need to login to post a comment.