lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


From: Tom Wrensch [mailto:Thomas.Wrensch@Colorado.EDU]
Note that an alternative approach would be to implement a special
expression version of if-then-else such as Java's <cond> ? <exp1> :
<exp2> form.

You could use
	(<cond> and <exp1>) or <exp2>
if you know that exp1 will not be nil.

-- 
Brian