Question on my CF IF Statement?

Posted on 2006-05-11
Last Modified: 2013-12-24

I have this CFIF statement and it is not displaying/finding the "EV" grp and the "EVENTS" name from the query.
I am thinking that there is something wrong with how I have coded the CFIF statement.

Basically, I am trying to output the two grp (groups) "DT" and "EV".
I have several grp (groups) identified in the table, and I want to show the "EV" grp with the "DT" grp only.

Can someone take a look at my code?

<cfelseif Trim(grp) is "DT" or Trim(grp) is "EV">
<cfif IsDefined("Cookie.adminID_cmcal2")>
<a href="caledit.cfm?RecordID=#id#&Direction=#url.direction#" title="#eventdescription#">
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reasonout#</i></A></FONT><br>
<cfif name IS "EVENTS">
<FONT FACE=ARIAL color="green" size="-2"><a href="##" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">HOLIDAY</a></i></FONT><br>
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reasonout#</i></FONT><br>
Question by:g118481
    1 Comment
    LVL 3

    Accepted Solution

    You don't have end tags for all your <cfif> tags. I'm assuming that this is just an excerpt, and that that's not the cause of yoru problem.

    First off, I would try just outputting the value you're trying to examine:


    If you're not getting inside that elseif block, then your condition isn't evaluating to 'true'. Take a look at the data and make sure that you're getting that values you expect there.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now