Re: Computing variables for routing

Michael Waider <[email protected]> Wed, 10 Oct 2007 18:37:32 +0200
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
On Wednesday, 10. October 2007, Luca Notari wrote:
> Hi all,
>
> Unfortunately I'm not able to resolve a problem when computing
> variables...
>
> This is the case:
> [...]

Some time ago, the following snippet worked fine for us:

<ROUTE CONTINUE="{/
srand(time);
@route=('alt1.survey','alt2.survey','alt3.survey');
print $route[int(rand(3))];
/}" />

Maybe you can rewrite this snippet for your purposes.

hth + cheers

Mike

-- 
eveca GmbH - Internet & Befragungen - http://eveca.de
Fon: 0941/785368-0 - Fax: 0941/785368-99
Skickat av Michael Waider <[email protected]>
till survey-discussion