Join Slack
Powered by
<@U6XEQ5PTQ> When functions have well defined retu...
# suitescript
a
alien4u
01/08/2019, 4:43 PM
@Jacob D
When functions have well defined return values I always do my checks using those return values...
findSublistLineWithValue
will always return
-1
if not found... so I do my checks like:
if (catItemIndex !== -1)
or
if (catItemIndex === -1)
depending what I want...
Open in Slack
Previous
Next