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

Reply via email to