in reply to Using the param function
One problem is that you need to use the eq operator to compare string equality. The == operator compares numeric equality; both of the strings in your comparison likely numify to 0.