You're exactly right. It's kind of like the IIF() function in CF. (condition) ? (do if true) : (do if false);
cheers, barneyb On Mon, 24 Jan 2005 10:33:30 -0800, Rebecca Wells <[EMAIL PROTECTED]> wrote: > 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. > > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 8 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware: a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191554 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

