coldfusion tip of the day

I am trying to blog more often. So, to help with that I am going to try to start doing a "Tip of the Day", even though it might not be every day. See, I am already trying to get out of it.

I was looking at some code today, and could not figure out why something was not displaying. Here is the if statement I was looking at:

<cfif isQuery("variables.myQuery")>
Show something here.
</cfif>

Do you see it? I didn't at first either. ColdFusion is treating variables.myQuery as a string. The solution I used was to remove the quotes, and everything worked. You could also put pound signs around variables.myQuery inside the quotes.

Comments
Bradley Moore's Gravatar Your entry about the de function caught my eye because I had just used it a few minutes ago. It's a very handy function indeed.

Just a heads up. The link to that entry is borked. ( print view works fine ) http://www.justanaverageyo.com/index.cfm/2008/6/11...
# Posted By Bradley Moore | 6/12/08 9:47 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.7.002.