Skip to contents

Add a soql::soql_where() statement to a SOQL query, or return the original query if where_value is NULL.

Usage

soql_nullable_where(soql_list, column, comparison_operator, where_value)

Arguments

soql_list

A soql query object, which can be piped in. If one hasn't been created yet, use or pipe in soql::soql().

column

column name for the soql::soql_where() component of the query, as a string.

comparison_operator

comparison operator for the soql::soql_where() component of the query, as a string.

where_value

A value for the comparison, or NULL for no filtering.

Value

A new soql::soql() object with the filter added, or simply the input object if where_value is NULL.