Usually ?: notation is used specifically for quickly choosing between
2 values (picking between 2 things inline). That's a case where you
really have to have an else, otherwise you wouldn't have a value to
represent the failure case of the IF part.
If you're doing logic that isn't inline in a statement then you really
should be using the full syntax (if(...) { ... }).
So no, I don't think there is shorthand, as I don't think what you're
looking for would be a good construct to have. Then again, I could be
wrong. :)
-Andy
On 1/26/07, Helmut Granda <[EMAIL PROTECTED]> wrote:
does anybody knows if there is any short hand for if statement without the
else statement?
at the moment I am using
object ? true : null;
thanks...
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com