Question

In Appian, Write an expression to check whether it is a Palindrome or Not ?

A
Anonymous
May 20, 2026

Answer

The purpose of this expression rule is to determine whether a given string is a Palindrome.

A palindrome is a word, phrase, or sequence that reads the same forward and backward.

Examples :

Input : MADAM

Output : Palindrome This palindrome checker demonstrates:

  1. String manipulation
  2. Looping logic
  3. Array processing
  4. Conditional evaluation
  5. Appian expression rule best practices
a!localVariables(

local!text: "MADAM",

local!reversedText: joinarray(
reverse(
a!forEach(
items: enumerate(len(local!text)) + 1,
expression: mid(local!text, fv!item, 1)
)
),
""
),

if(
upper(local!text) = upper(local!reversedText),
"Palindrome",
"Not Palindrome"
)
)

1779278639450-ch514bt5smu.png



JuniorSeniorExpressions
Loading comments...