It's simple ... because you are supposed to follow nesting orders
dictated by CF or CF will generate an error. That is how CF works. Your
asking a question equivalent to why can't a human being walk through a brick
wall. Not to mention the headache you cause other developers that one day may
need to work with your code. Breaking it up as you have it below creates
cluter and confusion for other developers that don't want to spend their time
fixing bad code like this.
Tony Weeg wrote:
>this is dumb isnt it?
>
>i mean, if
>
><cfif (isDefined("url.format") and url.format is "pdf")>
> <cfdocument format="PDF">
></cfif>
>
>fuck me here.
>
>This below bombs
>
><cfif (isDefined("url.format") and url.format is "pdf")>
> </cfdocument>
></cfif>
>
>this doesnt show EITHER cfdocument tag, then why would it matter?
>
>tony
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212819
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54