here's one way to do it:
#iif(
mything is "APPLE",
DE("pic_apple.gif"),
DE(
iif(mything is "BANANA",
DE("pic_banana.gif"),
DE("pic_cactus.gif")
)
)
)#
please note the use of the DE() function.
also you don't need the whitespace -- i just added it for clarity.
At 04:39 PM 1/12/2001 -0500, you wrote:
>I may be stretching, but I was wondering if there is a way to use IIF() to
>choose between 3 different expressions?
>What I have is a variable that has 3 different possible values. I need to
>test for the existence of a variable and display one of three images based
>upon the value of the variable.
>This is simple enough to do, but I really want to do it inline without
>having to make my loop any slower than it is.
>Any ideas?
>
>jon
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists