BlueOysterCult Posted October 10, 2003 Posted October 10, 2003 What does the "iif" acronym mean? Rob Quote
Moderators Robby Posted October 10, 2003 Moderators Posted October 10, 2003 In what context? VBA uses IIF as a conditional operator. Quote Visit...Bassic Software
BlueOysterCult Posted October 10, 2003 Author Posted October 10, 2003 as in strOrderSummary &= iif(radDlivery.checked, "Delivery", "Take out") Quote
hog Posted October 10, 2003 Posted October 10, 2003 iif(expression,true result, false result) myvar = iif(1 > 2, "yes", "no") myvar will equal "no" Quote My website
*Experts* Merrion Posted October 10, 2003 *Experts* Posted October 10, 2003 Inline if? Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Gurus* Derek Stone Posted October 10, 2003 *Gurus* Posted October 10, 2003 Yep, same as it was back in Visual Basic. Quote Posting Guidelines
*Experts* Volte Posted October 10, 2003 *Experts* Posted October 10, 2003 Note, in C# it is the ?: operator. It's kind of wierd.String desc; desc = (5 > 7) ? "greater" : "less"; MessageBox.Show("5 is " + desc + " than 7");It works like this: <var> = <expression> ? <true part> : <false part> Quote
wyrd Posted October 10, 2003 Posted October 10, 2003 It's kind of wierd. It has the same syntax as C/C++, Java etc. How is it weird? Quote Gamer extraordinaire. Programmer wannabe.
*Experts* Volte Posted October 10, 2003 *Experts* Posted October 10, 2003 the syntax can be confusing if you've never seen it before. I think it's the only tertiary operator there is, in C# at least. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.