Forum OpenACS Q&A: Re: "match" operator

Collapse
3: Re: "match" operator (response to 1)
Posted by Torben Brosten on
I am sure there is a better way, but until someone posts a clever answer, you can try this:

In the .adp file:

<if @admin_url_p@ true>

In the .tcl file, calculate admin_url_p so that it equals 1 for true, 0 for false.

set admin_url_p [regexp "/admin/" $this_url]