If variable reference in tresql string ends with ? i.e. variable is optional and it's value is null, it is filtered out of parameters to be passed to Query.