Axe Software Forums
  Quest Developer Forum
  Functions


Author Topic:   Functions
Pikaflare posted 15-11-2001 22:34 GMT     
Can someone give me a little help with functions? I understand it all except one thing. Parameters. How do you use them? Can someone make a small coded demo on how to use a function with a few parameters? That would help me greatly. Thanx

Maxpowr

Alex posted 16-11-2001 12:35 GMT          
If you call a function like this:

msg <My lovely function said $myfunc(3;potatoes)$>

then you might define it like this:

define function <myfunc>
for <i; 0; $parameter(1)$> {
msg <I love $parameter(2)$>
}
end define

Alex posted 15-11-2001 23:40 GMT          
(test message)