$RC stands for Return Code and if not processed later in the script, is simply a bit bucket (trash) used to sink the return code (prevent it from crapping to the screen).

There is a lot of good advice in our FAQ forum and you can also glean quite a bit from just looking at programming styles of most of the posted UDFs.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.