I need code for reversing a number with out using the appian functions

Certified Associate Developer

a!localVariables(
local!num: 12345,
local!reversed: 0,

{
a!forEach(
items: local!num,
expression:
a!localVariables(
local!reversed{local!num: quotient(local!num, 10),
local!reversed: ((local!reversed * 10) + local!num),
local!num: mod(local!num,10)},
)
)
}
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data