Validate Line Length

Function:

This tool is used to validate the maximum character number per line. As input, either the active editor or a file input can be used.

Attributes:

Attribute Type Description
Get Content From Select Value Specifies whether the content to validate is a file or the active editor content.
  • Active Editor (Default)
  • File
Message Severity Select Value Specifies the severity of a returned message.

Error messages cause an action to be aborted. Warning messages and information messages are displayed to the user without affecting the workflow. The only difference between warning and information messages are their appearance. This is also dependent on the operating system. Ignore does not affect the workflow at all. Abort cancels the action without any message:

Possible values:

  • Error (Default)
  • Warning
  • Information
  • Ignore
  • Abort
Ignore Blanks Select Value Specifies whether leading or trailing blanks should be used for the validation of the line length or not.

Possible values:

  • Empty (Default)
  • Leading
  • Trailing
  • Leading and Trailing

Parameters:

Parameter # I/O Type Description
1 [M] I String/Mass Processing Maximum line length as number
1 [O] I File/Mass Processing If the ‘Get Content From…’ is set to ‘File’, this file input parameter is used as content that is validated.
2 [O] O String/Mass Processing The result of the validation. This is a Boolean value. It returns true, if no line in the validated content is longer than the maximum line length. It returns false, if at least one line in the validated content is longer than the maximum line length.