Page 48 gives an example of how to use the standard If function. It's not been changed in years and should work just fine. Please spell out step by step what you did and maybe we can spot where you went wrong with it.
I'm so sorry. I left out customer type in the script. It works fine now.