Will Tomlinson wrote:
> Easy question here... just wanna make sure I don't screw this up cause it's 
> kinda important.  :)
>
> Here's my current statement. 
>
> <cfif getSection.DeliveryMethod EQ "Web-Enhanced" AND 
> getWebEnhancedAddonQuestions.recordcount>
>      Show questions blah blah...
>  </cfif>
>
> What I need it to say is, if the delivery method is "web-enhanced" OR hybrid. 
>
> Would you just stick it in there? Or use parenthesis around those two items?
>
>  
> <cfif (getSection.DeliveryMethod EQ "Web-Enhanced" OR 
> getSection.DeliveryMethod EQ "Hybrid") AND 
> getWebEnhancedAddonQuestions.recordcount>
>      Show questions blah blah...
>  </cfif>
>   
Neither.  I would use a list function.  It is efficient and makes sense
to read:

<cfif  listFind("Web-Enhanced,Hybrid", getSection.DeliveryMethod) AND
getWebEnhancedAdonQuestions.recordcount>
....


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286655
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to