Skip to main content
July 22, 2023
Question

what's wrong with this ?

  • July 22, 2023
  • 13 replies
  • 0 views

HI All,

I have written the following code

I just want to iterate over the list which I have created using enum function, but it's keep on saying that listOfIntegers is unused variable though I want to use in forEach loop.. 

Can anyone please correct me here.. 

Thanks

13 replies

stefanhelzle0001
Brainy
July 22, 2023

You need to unlearn the syntax of the language you are used to. You create a variable and assign a value in Appian just using "=" ":" not ":=".

And, Appian uses a functional language paradigm where variables are immutable. So your foreach will also not work.

July 22, 2023

wait what I think you mean I can create and assign variable just using ":" ryt ?