Macro Function as...

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

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Zlatko Vid local or function parameters container

is that even possible ?


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)
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