Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [dauhee] Numerical Operations on Variables

Quote Reply
Re: [dauhee] Numerical Operations on Variables In reply to
Goto template->globals and add:

i => sub {
my $tags = shift;
return $tags->{j} + 2;
}

and then put <%i%>. That will run the function and return the output (j + 2).

Cheers,

Alex
--
Gossamer Threads Inc.
Subject Author Views Date
Thread Numerical Operations on Variables dauhee 2802 Dec 11, 2001, 9:55 AM
Thread Re: [dauhee] Numerical Operations on Variables
Jagerman 2737 Dec 11, 2001, 10:06 AM
Thread Re: [jagerman] Numerical Operations on Variables
dauhee 2733 Dec 12, 2001, 3:53 AM
Thread Re: [dauhee] Numerical Operations on Variables
yogi 2727 Dec 12, 2001, 4:20 AM
Thread Re: [yogi] Numerical Operations on Variables
dauhee 2762 Dec 12, 2001, 7:43 AM
Post Re: [dauhee] Numerical Operations on Variables
Jagerman 2740 Dec 12, 2001, 7:50 AM
Thread Re: [dauhee] Numerical Operations on Variables
Alex 2705 Dec 12, 2001, 11:29 AM
Thread Re: [Alex] Numerical Operations on Variables
dauhee 2692 Dec 13, 2001, 4:55 AM
Post Re: [dauhee] Numerical Operations on Variables
Alex 2691 Dec 13, 2001, 12:37 PM