App Builder - User Guide

  1. Home
  2. Docs
  3. App Builder – User Guide
  4. General
  5. Conditional

Conditional

Conditional is a feature that allows you to show/hide a item with conditional. It will often be used in item. Ex: Profile Content Blocks in Profile, Rows in Product Detail

Video:

Configuare

With 2 path:

  • Status
  • Setting

Status

With 3 status:

  • Always show
  • Show if
  • Do not show if

Setting

Use when status is not “Always show

Conditional – OR

Video:

Conditional – AND

Video:

Merge Tag

Key’s value to comparison

Operator

Comparison method

MethodData type to comparison
is equal toAll types
is not equal toAll types
is empty– null
– String
– Map
– List
is not empty– null
– String
– Map
– List
contains– String
– List
doesn’t contain– String
– List
match regular expressionsString
is less thannumber
is less or equal tonumber
is greater thannumber
is greater or equal tonumber
Value

Value to compare with Merge Tag

Variables of Merge Tag

In profile

KeyData TypeDescription
{isLogin}StringValues: “true” or “false”
{language}String
{user.id}StringString number
{user.displayName}String
{user.userEmail}String
{user.loginType}String
{user.roles}List

In product detail

KeyData TypeDescription
{id}int
{name}String
{slug}String
{type}String
{status}String
{stock_status}String
{isLogin}StringValues: “true” or “false”
{categories}ListList of string number

Was this article helpful to you? Yes No

How can we help?