Please enable JavaScript to view this site.

ESL Documentation

You can specify more than one match clause in a single response to char or response to line response statement; for example:

 

response to line col 1 "add"

col 5 thru 10 number

    from application

        ...

 

This response statement contains two match clauses.  The first match clause:

 

col 1 "add"

 

is satisfied if the characters "add" appear in column positions 1-3 of the input line.  The second match clause:

 

col 5 thru 10 number

 

is satisfied if column positions 5 through 10 contain a valid number.

Both match clauses must be satisfied in order for the conditions specified in the response statement to be met.  If either match clause is not matched by the input line, the response statement is not satisfied and ESL does not perform the action statements specified in the response definition.