Elegant solution... and it works!
Someone should write a book on the quarks of <cfscript> :)
Thanks again!
Jamie
On Thu, 22 Mar 2001 12:12:48 -0500, in cf-talk you wrote:
>This works in CF 4.5
>
><cfscript>
> x = RandRange(1, 100);
> if (x GT 15) {
> writeOutPut("Greater then 15");
> }
> else if (x LT 15) {
> writeOutPut("Less then 15");
> }
> else {
> writeOutPut("Equals 15");
> }
></cfscript>
>
>-----Original Message-----
>From: Jamie Jackson [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 22, 2001 11:43 AM
>To: CF-Talk
>Subject: elseif in <cfscript>?
>
>
>Is there no elseif in <cfscript>? If not: Why not, and what's the
>usual workaround?
>
>Thanks,
>Jamie
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists