>Var = 123 >?TYPE(Var) && N && Theexpression Var evaluates to 123 which is a number >?TYPE("Var") && C The expression "Var" evals to Var which is a string >>
?type(trimzero('123')) && N && trimzero returns "123", so type of it would be N (type('123') - works ?type("trimzero('123')") && U - Here I expected C to return ?vartype(trimzero('123')) && CHow would you explain U result? I tested on other UDFs and all return U. However, type("val('123')") correctly returns N. Type('str(123)') also returns C, which is correct.