Script Helper
Sample BenSelect® scripts with notes on how they work, where they go and what to change. Search by keyword or by tag — try or .
6 scripts
LOD-001·Engine › On Load Members
Spousal surcharge rate row
Sets the medical rate row to Spousal Surcharge or No Surcharge based on the spouse's answer.
Intermediate Test before use#engine-on-load#intermediate#rate-row#surcharge
LOD-002·Engine › On Load Members
Tobacco surcharge rate row
Selects a tobacco or non-tobacco rate row from the employee's tobacco answer.
Intermediate Test before use#engine-on-load#intermediate#rate-row#surcharge
LOD-003·Engine › On Load Members
Rate row by job class
Different job classes get different contribution/rate rows.
Intermediate Test before use#engine-on-load#intermediate#rate-row#job-class
LOD-004·Engine › On Load Members
Set a default rate row only if none is set
Idempotent default: never overwrites a level the employee (or another script) already chose.
Beginner Test before use#engine-on-load#beginner#rate-row#idempotent
LOD-005·Engine › On Load Members
Share a value between scripts with Event.Properties
Compute something once and let later scripts on the same product read it.
Intermediate Test before use#engine-on-load#intermediate#engine-properties#spouse
LOD-006·Engine › On Load Members
Skip enrollment-only logic when running under a report
Wrap logic that should only run during enrollment, not when a report/EDI evaluates the engine.
Intermediate Test before use#engine-on-load#intermediate#report-guard#rate-row