Link to home
Start Free TrialLog in
Avatar of g118481
g118481

asked on

Question on my CF IF Statement?

Experts,

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>
<cfelse>
<cfif name IS "EVENTS">
<FONT FACE=ARIAL color="green" size="-2"><a href="##" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">HOLIDAY</a></i></FONT><br>
<CFELSE>
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reasonout#</i></FONT><br>
</cfif>
</cfif>
///////////////////////////////////////////////////////////////////////////
ASKER CERTIFIED SOLUTION
Avatar of incapital
incapital

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial