【发布时间】:2011-11-25 13:31:50
【问题描述】:
好的,所以用户...这是一个看似不可能出错的条件语句。这很简单,但是,我不知道为什么它不能按预期的方式工作。
<cfoutput query="checkForAd">
<!--- also used the line <cfif RecordCount eq 0> --->
<cfif checkForAd.RecordCount eq 0>
<!--- Display some message. (Perhaps using a table, undecided) --->
<cfelse>
<!--- Display some other message. (Happens to be a table) --->
</cfif>
</cfoutput>
当 RecordCount 返回大于 0 的数字时,else 情况会正确显示。当 RecordCount 返回 0 时,不显示任何内容,并且表单继续沿其路径前进。我变得非常沮丧,因为这应该很简单......
【问题讨论】: