On 7/12/06, David <[EMAIL PROTECTED]> wrote:
> All the statements in that example have CF tag equivalents (CFScript syntax
Yes I know :-) I'm saying that I cannot get the conditional loop to
work, and I cannot recall ever needing an isdefined in a
non-cfscripted loop so I have nothing to fall back upon.
If I use
<cfloop
condition="isdefined("foo")">
...do stuff...
</cfloop>
you get an explosion due to the doubled-quotes. If you substitute
single quotes inside of the isdefined that throws an error. If you
dispense with the quotes so the value in isdefined is a variable
rather than a sring literal, and set the variable outside the loop,
like so
<cfset arfarf="foo">
<cfloop
condition="isdefined(arfarf)">
...do stuff...
</cfloop>
I don't get any errors but I also don't seem to be getting an expected result.
--
[EMAIL PROTECTED]
Janitor, MSB Web Systems
mysecretbase.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246388
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4