Is it possible to create a user define function with optional argument in AFL?
function Test (Var1,Var2,Var3,Var4,Var5)
{
if(IsNull(Var5))
{
Var5 = 0;
}
xyz = Var1+Var2+Var3;
return xyz;
}
Test(1,2,3,4,5); //Default and using
//Can this be Done ?
Test(1,2,3,4);
Test(1,2,3);
@fxshrat provided workaround, but generally optional arguments are supported only for internal functions and user-definable functions exposed by plugins (DLLs).