Skip to main content
Known Participant
Jul 22, 2023 8:22 AM UTC
Question

what's wrong with this ?

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
Jul 22, 2023 9:02 AM UTC

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.

Known Participant
Jul 22, 2023 9:09 AM UTC

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