I can't remember what it is called, but I need to do a sort of conditional statement inside of a CFSet statement. What I mean is something like the following
siteSettings = {
mailserversmtpport = resourceBean.getValue('mailsmtp'), // SMTP Port (If the method returns no len() then default to 25)
mailserverpopport = resourceBean.getValue('mailpop'), // POP port (If the method returns no len() then default to 110)
};
So I am building a structure with the smtp and pop port for a mail server. I have a method call that gets a value from a bean. If that value doesn't exist then it is just going to return a 0 length string. Is it possible (in ColdFusion 8) to have the value be 25 and 110 if returned values have no length without do cfif statements?