You should do something like this. testerSub = ch...
# suitescript
j
You should do something like this. testerSub = checkNumber(scopeSubsidiary, poSubsidiary, testerSub); and then in your function return the value you want it to have