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#&Dire ction=#url .direction #" title="#eventdescription#" >
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reaso nout#</i>< /A></FONT> <br>
<cfelse>
<cfif name IS "EVENTS">
<FONT FACE=ARIAL color="green" size="-2"><a href="##" onmouseover="doTooltip(eve nt,0)" onmouseout="hideTip()">HOL IDAY</a></ i></FONT>< br>
<CFELSE>
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reaso nout#</i>< /FONT><br>
</cfif>
</cfif>
////////////////////////// ////////// ////////// ////////// ////////// /////////
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_
<a href="caledit.cfm?RecordID
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reaso
<cfelse>
<cfif name IS "EVENTS">
<FONT FACE=ARIAL color="green" size="-2"><a href="##" onmouseover="doTooltip(eve
<CFELSE>
<FONT FACE=ARIAL color="green" size="-2">#name#-<i>#reaso
</cfif>
</cfif>
//////////////////////////
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.