Entering the Policy Script
You can type directly in the Script field. The policy script screen alerts you to JavaScript syntax errors. You can save a policy script even if there are errors in the code.
Be aware that the script runs frequently, so you’ll see better performance if you avoid lengthy and complex calculations.