RE: IIF() and IsDefined()

2003-04-04 Thread Tangorre, Michael
try quotes around the argument passed to DE. DE(struct.keyname) should be DE('struct.keyname') mike -Original Message- From: Alexander Sherwood [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:36 PM To: CF-Talk Subject: IIF() and IsDefined() Help: #IIF(StructKeyExists(struct,

RE: IIF() and IsDefined()

2003-04-04 Thread Barney Boisvert
you don't need the de() call around the variable name, just put it in quotes: iif(structKeyExists(struct, keyname), struct.keyname, de(no key)) Your code was trying to output a variable with a name equal to the value stored in #struct.keyname#, which isn't what you wanted. Usually, using CFIF