Inline Script validators
Inline Script validators allow you to enter the text of a short validation script directly in the “Parameters” row of the “Validator Properties” dialog box. Use an Inline Script if the entered script (including parameters) is less than 12 lines (750 characters).
If a script exceeds the maximum length, use the Run Script response type, which accesses WinStudio objects and data through the scripting API.
To pass the validation, the script must return zero. If the script returns a nonzero value, WinStudio fails the validation.