The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Discussion of Functions >> ELSIF
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1094919301

Message started by www.blitzday.com on 09/11/04 at 18:15:01

Title: ELSIF
Post by www.blitzday.com on 09/11/04 at 18:15:01

Hello,

I want to putin an addon with elsif statements they say put them where all the elsif are.

But i casnnot find it where should i put it?

Freddy

Title: Re: ELSIF
Post by froot on 09/24/04 at 15:45:31

I found it already:

elsif statements look like this:

elsif ($form{'action'} eq 'export') { &adminexport; }
elsif ($form{'action'} eq 'exportfile') { &exportfile; }

just copy them as an event in the event section:
Convert them to this:

'export'            =>  \&adminexport,
'exportfile'      =>  \&exportfile,


if you look detailed you can see what to get rid of and what to add..... helps you putting up addons easily once you know this.

Title: Re: ELSIF
Post by Dieter Werner on 09/27/04 at 18:27:51

Yes ...
that's the way it works  :)

Title: Re: ELSIF
Post by www.blitzday.com on 09/30/04 at 10:42:47

Ha I am learning fast :-)

Blitzday.com

Title: Re: ELSIF
Post by Dieter Werner on 11/27/04 at 16:01:46

Yes - because you and the user 'froot' are the same persons  ;)

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.