March 18th, 2004, 06:07 PM
a cfscript question
new at this and could use a nudge in the correct direction as to what I did wrong. setup a cfscript tag as follows:
divisionManagers = arrayNew(1);
divisionManagers = "Here lies the contect that describes the first of 9 division managers (and they all look like this).";
If (IsDefined("url.intDivNum") And (("url.intDivNum") lte 9) And (("url.intDivNum") gte 1))
WriteOutput('Click on the division name to see more information.');
with a cfoutput tag calling the function name, and all it'll display is the else part of the function.
Any assistance would be appreciated.
March 19th, 2004, 03:06 PM
script question answered...
Your if is testing the actual string "url.intDivNum" instead of its value. Try the line below.
If (IsDefined("url.intDivNum") And (url.intDivNum lte 9) And (url.intDivNum gte 1))
You also might be better off to always use cfparam for all expected variables in a page. ie at the top of the code:
<cfparam name="url.intDivNum" value=0>