-2

I totally don't understand what I am doing with ColdFusion, but was forced to work on it. Can someone tell me what this error means? Please explain specifically. Thank you.

Code:

<h1> Dear <cfif><cfoutput>#session.member.nmFirst# #session.member.nmLast#</cfoutput><cfelse>Student</cfelse></cfif>,</h1> 

Error:

Invalid CFML construct found on line 3 at column 19.
ColdFusion was looking at the following text:

>

The CFML compiler was processing:
A cfif tag beginning on line 3, column 15.

Resources:

Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.

Browser     Mozilla/5.0 (Windows NT 6.3; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Remote Address      xxxxxx
Referrer    http://www.xxxx.com/index.cfm/page/application-step-final
Date/Time       06-Feb-15 05:21 PM
Community
  • 1
  • 1
user1874435
  • 161
  • 13

1 Answers1

1

Just so this question doesn't hang around being open, I'll answer it properly, rather than relying on the answer in the comments. This is duplicated from there.

<h1> Dear <cfif><cfoutput>#session.member.nmFirst# #session.member.nmLast#</cfoutput><cfelse>Student</cfelse></cfif>,</h1>

You don't have a condition in your <cfif>.

Adam Cameron
  • 29,677
  • 4
  • 37
  • 78