[AOLSERVER] adp files

2008-03-10 Thread Xavier Bourguignon
Hi All, I am just starting to use adp files and I want to ask if the following code is possible: div % if {[call_tcl_proc_here]} { % The result is 1br % } else { % The result is 0 % } % /div I am asking this because when I run this I get a tcl error saying: missing

Re: [AOLSERVER] adp files

2008-03-10 Thread Robert Seeger
Each Tcl block is parsed individually. As such, they need to be self contained. Your best bet is to do something along the lines of: div % if {[call_tcl_proc_here]} { ns_adp_puts The result is 1br } else { ns_adp_puts The result is 0 }