Verifier
Used for testing assumptions about code.
The verifier section gives users the ability to test assumptions about their code before running any of it. This helps to prevent unexpected code failures.
The verifier goes before the trigger of a function or other executable member.
The verifier section is run once with empty arguments for the function's parameters.
Verifiers cannot run delays or deferred code.
The verifier is run when the script is loaded, allowing users to test for file permissions, certain libraries being available, versions or systems, etc.
This stops your script from failing at a dangerous point (e.g. when mid-way through saving important data.)
Last updated