you have it the wrong way round, see in your code ...
# suitescript
j
you have it the wrong way round, see in your code on line 11 you get model name? then on line 13 you test for productNum instead. You need to change it to this