$RETURN(xyz) or /RETURN(xyz) - 03/07/05 08:44 AM
I dont know how possable it is due to the way lines are processed,
but the idea is that rather than issuing a /RETURN xyz you can issue a $RETURN(xyz) or just /RETURN(xyz)
xyz is the return value of course,
Reason? Well i just realised that consecutive spaces in a returned value are swallowed up
example
//echo -a Len of returnvalue post return is $len($example)
Len of returnvalue pre return is 5
Len of returnvalue post return is 3
but the idea is that rather than issuing a /RETURN xyz you can issue a $RETURN(xyz) or just /RETURN(xyz)
xyz is the return value of course,
Reason? Well i just realised that consecutive spaces in a returned value are swallowed up
example
Code:
alias example { var %returnvalue = $replace(a...e,.,$chr(32)) echo -a Len of returnvalue pre return is $len(%returnvalue) return %returnvalue }
//echo -a Len of returnvalue post return is $len($example)
Len of returnvalue pre return is 5
Len of returnvalue post return is 3