Functions not permitted in Custom Expressions?

Ah, ok, thanks .
Shouldn’t be a problem to open up functions and pack the code into one complete procedure.