Skip to main content
Inspiring
November 30, 2012
Question

CFELSE not executing

  • November 30, 2012
  • 1 reply
  • 1679 views

I have a form with simple IF (field not blank) output field ELSE output   structures.  In the middle of processing them, ColdFusion starts skipping the CFELSE parts of these structures.

ColdFusion 10.

I don't see anything wrong with the code.

Anybody know what's going on?

Nathan Manning

This topic has been closed for replies.

1 reply

Inspiring
November 30, 2012

My guess is white space.

I tend to approach problems like this with this sort of thing.

if some condition is true

output "yes"

else

output "no"

output other relevent data to help you figure out why you are in the else block.

Inspiring
November 30, 2012

The test is <CFIF queryfield NEQ ""> <CFELSE>.  I am in the process of adding cfparameters defaulted to "" for the query result parameters to see if that helps...

12Robots
Participating Frequently
November 30, 2012

I will buy you a pony if you stop capitalizing your tags.

Jason