---
schema_version: "1"
id: 1bd720e07933d8461bc12f44d10091a1d9a1f851c57a5d5b1597a0270af3e20b
title: iselseif Element
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/isml/b2c-iselseif.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-iselseif.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4ce8d95688c0f390dd3083e1361762d4236f60e85040a3ca17c5ecbf0ab1c027
products:
  - Composable Storefront
  - Salesforce APIs
---
# iselseif Element

Use with `<iselseif>` to specify a subcondition off an `<isif>` tag.

## Syntax

```
<isif condition = if_expression>
  ...
<iselseif condition = elseif_expression> //0 or more
  ...
</iselseif>
<iselse>
  ...
</isif>
```

- condition

  - : _Allowed data type:_ string or expression.

    `elseif_expression` evaluates to a boolean value. If the `<isif>` condition is true, the system executes the code immediately following the `<isif` `>` tag, ignoring the enclosed `<iselseif>` and `<iselse>` tags. If the `<isif>` condition is false, the system ignores the code immediately following the `<isif>` tag, and then tests each `<iselseif>` condition in order. When the system finds a true `<iselseif>` condition, the system executes the code immediately following the `<iselseif>` tag and ignores any remaining `<iselseif>` and `<iselse>` tags. If all `<iselseif>` conditions are false, the system executes the code following the `<iselse>` tag.

## Example

In this example, the system determines if the product name equals 'case' or 'bag'. If it does, it shows the word _Monogram._ If it doesn't, it continues processing.

```
<thead>
  <tr>
    <th>Qty.</th>
    <th colspan="2">Description</th>
  <isif condition="${pdict.Product.name == 'case'}">
    <th>Monogram</th>
  <iselseif condition="${pdict.Product.name == 'bag'}">
    <th>Monogram</th>
  <iselse>
    <th>Unit Price</th>
  </isif>
    <th>Item Total</th>
    <th>&nbsp;</th>
  </tr>
</thead>
```
