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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFIF Multiple Conditions 1

Status
Not open for further replies.

rmz8

Programmer
Aug 24, 2000
210
US
How can I make a CFIF statement with the following conditions:

Number greater than 3 AND less than 13.

I tried:

<CFIF grade_level GT 3 LT 13>

But I don't think it works.

Thanks in advance.

Ryan ;-]
 
Here, try this. I tested it with several datapoints, and it seem to work.
Code:
<CFSET DataPoint = 4>
<CFIF DataPoint GT 3>
	<CFIF DataPoint LT 13>
		<CFOUTPUT>DataPoint is in the correct range.</CFOUTPUT>
	<CFELSE>
		<CFOUTPUT><FONT COLOR=&quot;Red&quot;>DataPoint is NOT in the correct range.</FONT></CFOUTPUT>
	</CFIF>
<CFELSE>
	<CFOUTPUT><FONT COLOR=&quot;Red&quot;>DataPoint is NOT in the correct range.</FONT></CFOUTPUT>
</CFIF>
Calista :-X
Jedi Knight,
Champion of the Force
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top