Why does this always evaluate to 1?

<cfif (qDates.ID1 is not "") AND (qDates.ID2 is not "") AND (qDates.ID4
is not "")>
<cfset variable.status = 1>
<cfelseif (qDates.ID1 is not "") AND (qDates.ID2 is not "") AND
(qDates.ID4 is "")>
<cfset variable.status = 2>
<cfelseif (qDates.ID1 is not "") AND (qDates.ID2 is "") AND (qDates.ID4
is "")>
<cfset variable.status = 3>
<cfelseif (qDates.ID1 is "") AND (qDates.ID3 is not "")>
<cfset variable.status = 4>
<cfelseif (qDates.ID1 is not "") AND (qDates.ID3 is "")>
<cfset variable.status = 5>
</cfif>

This is driving me nuts. I can never seem to get the IF...AND to work
right. What am I missing here?

Cutter

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to