Note: You are not authentified


The DEFUNC module contains functions for manipulating "macros".




˜defunc()

It creates a new function (or macro). It takes two arguments: Example :
˜defunc('function',˜get('value'))

˜sparam()

In a macro ˜sparam() retrieves parameters given in the call. The only parameter is the number of the parameter to get from the call.

Example :
˜defunc('inrange',˜and(˜sparam(1)>˜sparam(2),˜sparam(1)<˜sparam(3)))


˜inrange(3,1,5)

This function tests if the first parameter is between the second and the third. The returned value is boolean (0 for FALSE, 1 for TRUE)

In this example ˜sparam(1) returns 3, ˜sparam(2) returns 1 and ˜sparam(3) 5
Thus the result is : 1 (TRUE)