> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lantern.is/llms.txt
> Use this file to discover all available pages before exploring further.

# is_eligible

> Check if a customer is eligible to participate in the loyalty program.

## Syntax

<Tabs>
  <Tab title="Liquid">
    ```liquid theme={null}
    customer.metafields.lantern.is_eligible
    ```
  </Tab>
</Tabs>

## Description

The `is_eligible` metafield indicates whether a customer is eligible to participate in the loyalty program. This boolean value determines if the customer can earn points, advance through tiers, and redeem rewards. Eligibility can be affected by factors such as account status, geographic location, or program-specific criteria.

<Info>
  Customers who are not eligible for the loyalty program will have most other loyalty metafields return `null` values.
</Info>

## Properties

**Type:** `Boolean`
**Namespace:** `lantern`
**Auto-updated:** Yes

## Return Values

| Scenario                         | Value   | Type    |
| -------------------------------- | ------- | ------- |
| Eligible for loyalty program     | `true`  | Boolean |
| Not eligible for loyalty program | `false` | Boolean |
| Eligibility not determined       | `null`  | null    |
| Logged out                       | `null`  | null    |

## Examples

### Basic Eligibility Check

```liquid theme={null}
{% assign is_eligible = customer.metafields.lantern.is_eligible %}
{% if is_eligible %}
  <div class="loyalty-welcome">
    <h3>Welcome to our Loyalty Program! 🎉</h3>
    <p>Start earning points with every purchase.</p>
  </div>
{% elsif is_eligible == false %}
  <div class="loyalty-ineligible">
    <p>Loyalty program not available in your region.</p>
  </div>
{% endif %}
```
