我正在尝试根据现有数据库实体检查 2 个表单元素的内容,然后如果它们中的任何一个是不同的,则运行一个条件选项,但我遇到了一些问题,因为以下似乎不起作用。难道我做错了什么?
<cfquery name="qLiveService" datasource="#application.datasource#">
SELECT broadcastPackage, AdditonalDVDs
FROM dbo.tributes
WHERE profileID = 122>
</cfquery>
<cfif qLiveService.broadcastPackage is form.broadcastPackage and qLiveService.AdditonalDVDs is form.AdditonalDVDs >
<!--- do something -->
<cfelse>
<!--- of one was different now run the code in this area -->
</cfif>