Define the functions first. <?rev function myFunction put 1 + 1 into var2 return var2 end myFunction
put myFunction() into var1 put var1 ?> On Tue, Nov 16, 2010 at 9:40 AM, paolo mazza <[email protected]>wrote: > How can I place a function in a on-rev - CGI server script ? > I have to port a stack script (with commands and functions) to a .irev text > file for the on-rev server . > I expected something similar to the following script... > > <?rev > put MyFunction() into tVAR1 > put tVAR1 > > function MyFunction > put 1 + 1 into VAR2 > return VAR2 > end MyFunction > > ?> > ... but obviously it does not work !!! > > Any idea? > > Many thanks > > Paolo Mazza > _______________________________________________ > use-revolution mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
