> Can anyone tell me please what do question marks and colon 
> symbols signify in a javascript command? For example:
> 
> F.value = S < 0 ? "?? " + F.value : (new Date(2000, 0, 1, 
> S[0], S[1])).USlocaltimeStr();
> 
> My guess is that this is some kind of shorthand for an 
> if-then-else control structure, but I've never seen it 
> documented anywhere.

Your guess is right; it is analogous to IIF() in CFML.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191556
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to