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

Less than greater than ? 2

Status
Not open for further replies.

BobLaw

Programmer
Oct 2, 2000
27
US
Hello,


I am new to ColdFusion so forgive the question, but
I need to know how I can use CFIF to find out if a value
is less than or greater than a specified one?

Example that won't work for me:

<cfif #recordcount# < &quot;50&quot;>
Do something here
</cfif>

It seems if I use anything other than (EQ NEQ) it
just error's out on me.


Can you tell me what I am doing wrong?

Thanks.
[sig][/sig]
 
Here are the ways to express in CFIF (use the characters after the colon):

GREATER THAN: GT

LESS THAN: LT

GREATER THAN OR EQUAL TO: GTE

LESS THAN OR EQUAL TO: LTE


[sig]<p>Ryan ;-]<br>[/sig]
 
Thanks :)

I could hit myself for not trying those :( ,
can you tell me if there is a good list of these
types of functions and constants around? All I could
find in the book &quot;Developing Web Applications with ColdFusion 4.5&quot; was the use of these types (<,>,= etc.) and they do not work other than SQL.

Thanks again.

[sig][/sig]
 
Hi!

imho there is one book that is a must-have in the cf world and it is: The Coldfusion 4.0 Web Application Construction Kit (Cold Fusion 4)

It's made by: Ben Forta (CF GURU)

Paperback - 1001 pages 3rd Bk&cdr edition (December 23, 1998) MacMillan Publishing Company; ISBN: 078971809X ; Dimensions (in inches): 2.23 x 9.10 x 7.48

I dont really think you can live without it especially when you are new to CF.

Chris ;-)
[sig][/sig]
 
Thanks, I will pick that up soon... [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top