I need to compare two fields and if they are the same return their value as BLANK.
if ($.rawValue == REFADD.rawValue) then $.rawValue = "" REDADD.rawValue = "" endif
I think your code will work if you're using three fields.
REFADD
REDADD
$ (the event field)
If not, I guess you're misspelling your reference syntax.