In a ternary expression each element has to be a single RVALUE, meaning that it's something that can be on the right hand side of the equals. So basically when you see a semicolon you know it's not going to work (funct2(); true).
So I guess the answer is no, if funct2() is void you wouldn't use it in this ternary. Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Libby Sent: Thursday, January 26, 2006 9:14 AM To: [email protected] Subject: [flexcoders] Syntax question about conditional expressions Flex 1.5 Is there a way to do this: value = funct1()returns Boolean ? funct2(); true : false; in other words, can you do a function on the true side that returns nothing, then somehow either return true for your value, or set your value to true? of course I can do "IF" statements instead of this, I am just playing with the conditional statement. Thanks, Libby -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

