whenever I added an if condition the code doesn't work on the null offerlist field
here is my filter
code => '
if event.get("offerList") == "NULL"
t = event.get("UCounter")
t.each_index { |i|
t[i]["BUNDLE"] = @dict[t[i]["UCounter_ID"]]
}
event.set("UCounter", t)
x = event.get("UCounter")
x.each_index { |i|
x[i]["DESCRIPTION"] = @dict[x[i]["UCounter_ID"]]
}
event.set("UCounter", x)
end
'