addLineIfThen method

QueryWithClient addLineIfThen(
  1. bool cond,
  2. String line
)

Adds one LineIfThen to inner store of query fragments.

Sample:

.addLineIfThen( user_name!=null, 'FILTER u.name==@user_name' )

Implementation

QueryWithClient addLineIfThen(bool cond, String line) =>
    addQueryTextFragment(query.LineIfThen(cond, line));