---
schema_version: "1"
id: 18770d1813e407023c21922571eee88f6de2a4bb0a6b47bd2afe37ecd67db879
title: Using the Case Node
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/data/264-0-0/c360_a_using_the_case_node.md
canonical_url: https://help.salesforce.com/s/articleView?id=data.c360_a_using_the_case_node.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 60590c1c03c6ef25532b65335957c17f6c8847cfef0ec373608ee6345013eaa7
description: The case node, similar to the CASE statement in SQL, analyzes data by comparing the attributes of conditions. The WHEN/THEN statements determine the outcome based on whether all or any of the specified conditions are true. If none of the WHEN conditions are met, the ELSE statement provides an alternative action. The Case node statement must be followed by at least one WHEN/THEN pair, which applies a designated function when the associated condition is true.
products:
  - Data 360
release: "264"
---
# Using the Case Node

The case node, similar to the CASE statement in SQL, analyzes data by comparing the attributes of conditions. The WHEN/THEN statements determine the outcome based on whether all or any of the specified conditions are true. If none of the WHEN conditions are met, the ELSE statement provides an alternative action. The Case node statement must be followed by at least one WHEN/THEN pair, which applies a designated function when the associated condition is true.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">equal</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are equal to the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">not</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are not equal to the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">is null</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns a null value when conditions are met.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">is not null</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns a not null value when conditions are met. For example, filtering a field to ensure that the value exists.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">less than</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are less than the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">less than or equal to</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are less than or equal to the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">greater than</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are greater than the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">greater than or equal to</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns values that are greater than or equal to the specified value.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">is empty</td><td class="slds-cell-wrap" style="vertical-align:top;">Returns empty values. For example, an empty string is a string with zero length.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">contains</td><td class="slds-cell-wrap" style="vertical-align:top;">Checks if the given value can be found in the results.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">does not contain</td><td class="slds-cell-wrap" style="vertical-align:top;">Checks whether the specified value is not present in the results.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">contains regular expression</td><td class="slds-cell-wrap" style="vertical-align:top;">Checks whether the specified matching string is present in the results.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">does not contain regular expression</td><td class="slds-cell-wrap" style="vertical-align:top;">Checks whether the specified matching string is not present in the results.</td></tr></tbody></table>