I've stumbled upon these really useful functions, but they only seem to work for me in expressions, and when I try to use them in my script, I get the function undefined message. It would be really weird if they didn't implement this feature for scripts..
Am I missing something?