Hi dhoagland,
First, check that you are logging all the pids mentioned in the calc pids and filters that you're using.
Second, you need to use the pid() call to enclose the pid strings (and you should simplify the pid strings)... i.e. like this:
return pid("TP")>16 and pid("ECT")>60
Third, when using if-else, a return causes the calc pid/filter to immediately exit... i.e. the second if-else will not be executed... so the filter is only checking one condition.