Macro Function as...

Started by Zlatko Vid, June 13, 2024, 11:22:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zlatko Vid

...as local or function parameters container

is that even possible ?

like

macro myMacro(arg1,arg2,arg3)

i hope that my question is not stupid  ;D

Charles Pegge

Macro functions with a defined return type and parameters look like this:

macro inlimits int(r,  a,min,max)
=================================
r=-1
if a<min then r=0
if a>max then r=0
end macro

print inlimits(20,10,30) '-1
print inlimits(31,10,30) '0



Zlatko Vid

thanks Charles
I will try to use it