troubleshooting Question

Working with null values and CFIF

Avatar of diecasthft
diecasthft asked on
Web Servers
4 Comments1 Solution1861 ViewsLast Modified:
I have a question regarding null values. I have a data table, and that table has a few fields, some have data, some don't. What I'm trying to do is a cfif statement in a cfm page that if the databae query returns nothing for this specific field, then I want the web page to look a certain way, but if the query returned a value of 0 or greater, than I want the web page to look like something else. I thought I could do <cfif #CUMULATIVE_OM# IS NULL> but that doesn't work.....and if I put 0 in there instead of NULL, that doesn't work either, because there is nothing in the specific field. Any help would be greatly appreciated!!!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros