Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with this "cfif" statement

Status
Not open for further replies.

lminmei

Programmer
Joined
Feb 1, 2000
Messages
111
Location
US
can someone tell me what is wrong with this statement:

<CFIF #GetID.UserType# eq &quot;super&quot; OR &quot;admin&quot;>


I keep an error on this.

The error is:
----------------------------
Error Diagnostic Information
InsideText

Cannot convert admin to boolean.

Please, check the ColdFusion manual for the allowed conversions between data types


 
You need a complete equation on both sides of the OR.

like this:
<CFIF #GetID.UserType# eq &quot;super&quot; OR #GetID.UserType# EQ &quot;admin&quot;> The only dumb questions are the ones that are never asked
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top