Answers.Body: <p><strong>1. "Expected name or number" error</strong></p>
  
  <p>The parser is expecting a method/property after the dot of <code>productSale</code>, but you are passing arguments. Removing the dot to make it valid:</p>
  
  <pre><code>{% set products = craft.entries.section('product').productSale(':notempty:') %}
  </code></pre>
  
  <p>.</p>
  
  <p><strong>2. Documentation</strong></p>
  
  <p>There is no documentation on this yet, but it is listed in the <a href="https://craftcms.com/changelog#2-0-2524" rel="noreferrer">release notes</a>:</p>
  
  <blockquote>
    <p>Added support for passing “:empty:” and “:notempty:” to
    <a href="http://buildwithcraft.com/docs/templating/elementcriteriamodel" rel="noreferrer">ElementCriteriaModel</a> parameters when you’re looking for
    empty/non-empty values.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-24T22:28:04.830Z
Answers.LastActivityDate: 2018-01-18T11:26:31.380Z
Answers.LastEditDate: 2018-01-18T11:26:31.380Z
Answers.UserDisplayName: Victor
Body: <p>I'm trying to return entries where a specific field named "productSale" is not empty. Unfortunately, my code attempts keep throwing the "Expected name or number" error.</p>
  
  <p>Code attempts include:</p>
  
  <pre><code>{% set products = craft.entries.section('product').productSale.(':notempty:').find() %}
  {% set products = craft.entries.section('product').productSale.('not null').find() %}
  {% set products = craft.entries.section('product').productSale.('is not null').find() %}
  {% set products = craft.entries.section('product').productSale.('not empty').find() %}
  </code></pre>
  
  <p>Three questions then:</p>
  
  <ol>
  <li>What is the "Expected name or number" error saying exactly? </li>
  <li>Where in the available docs (Craft or Twig) would I look for explanation on this? I didn't find much in my first pass.</li>
  <li>How do I return entries where a specific field is "not empty"</li>
  </ol>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-24T22:20:39.133Z
Comments.Text: Try removing the dot after productSale: productSale(':notempty:')
Comments.UserDisplayName: Victor
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-24T22:26:08.207Z
Comments.Text: Do you know where in the docs I can find ":notempty:"?
Comments.UserDisplayName: Anna_MediaGirl
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-06-24T22:28:31.307Z
Comments.Text: Glad I could help, I'll added it as an answer.
Comments.UserDisplayName: Victor
Tags: <entries><error-message>
Title: Return entries where field is "not empty"
ThreadText: # Return entries where field is "not empty"
  
  (Asked by: username_0 on 2014-06-24)
  
  I'm trying to return entries where a specific field named "productSale" is not empty. Unfortunately, my code attempts keep throwing the "Expected name or number" error.
  
  Code attempts include:
  
  ```
  {% set products = craft.entries.section('product').productSale.(':notempty:').find() %}
  {% set products = craft.entries.section('product').productSale.('not null').find() %}
  {% set products = craft.entries.section('product').productSale.('is not null').find() %}
  {% set products = craft.entries.section('product').productSale.('not empty').find() %}
  
  ```
  
  Three questions then:
  
  1. What is the "Expected name or number" error saying exactly?
  2. Where in the available docs (Craft or Twig) would I look for explanation on this? I didn't find much in my first pass.
  3. How do I return entries where a specific field is "not empty"
  
  **Tags:** entries, error-message
  
  > **Comments:**
  > **username_1**: Try removing the dot after productSale: productSale(':notempty:')  
  > **username_0**: Do you know where in the docs I can find ":notempty:"?  
  > **username_1**: Glad I could help, I'll added it as an answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-06-24. Score: 18 | Accepted answer
  
  **1. "Expected name or number" error**
  
  The parser is expecting a method/property after the dot of `productSale`, but you are passing arguments. Removing the dot to make it valid:
  
  ```
  {% set products = craft.entries.section('product').productSale(':notempty:') %}
  
  ```
  
  .
  
  **2. Documentation**
  
  There is no documentation on this yet, but it is listed in the [release notes](https://craftcms.com/changelog#2-0-2524):
  
  > Added support for passing “:empty:” and “:notempty:” to
  > [ElementCriteriaModel](http://buildwithcraft.com/docs/templating/elementcriteriamodel) parameters when you’re looking for
  > empty/non-empty values.
  
  
  ---
  
  