In a user defined func in comterp, the value returned is the last expression evaluated, i.e.: addsuffix=func(s+=".XXX") returns "hello.XXX" after addsuffix(:s "hello") is called. With a return statement it could be written as addsuffix=func(if(s==nil :then return(nil));s+=".XXX")
In a user defined func in comterp, the value returned is the last expression evaluated, i.e.:
addsuffix=func(s+=".XXX")
returns "hello.XXX" afteraddsuffix(:s "hello")
is called. With a return statement it could be written asaddsuffix=func(if(s==nil :then return(nil));s+=".XXX")