Jose, the error you're getting is due to not defining your server name in the virtual server's ACS configuration file (the one you make from parameters/ad.tcl).
This means that the predicate referenced by ad_parameters hasn't been defined for your virtual server, so ad_parameters returns "".
if [ "" && ... ] is indeed an error, just like Tcl sez.