What if my JavaScript expression does not return a value for a calculation?
A JavaScript function always returns a value, if it is properly defined.
If you do not specify a return value, it remains undefined and can result in
unexpected behavior. Therefore, make sure you include a
return
statement on your rule to specify the value
your JavaScript expression should return. For step-by-step instructions, see
Create a rule for a calculated value.
Parent topic: Frequently Asked Questions (FAQs)