Question
In Appian, Write an expression to check whether it is a Palindrome or Not ?
A
Anonymous
May 20, 2026
36
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:
- String manipulation
- Looping logic
- Array processing
- Conditional evaluation
- 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"
)
)

JuniorSeniorExpressions
Loading comments...