Skip to main content

$lineCount

The $lineCount operator counts the number of lines in a string.

Input

  • A single string value

Output

  • The number of lines in the input string (counting newline characters)

Examples

Count Lines in Multi-line String

Result: 3

Count Lines in Single Line

Result: 1

Count Lines in Empty String

Result: 0

Field Value

Result: The number of lines in the content field