Help with reversing list block

Hello, new app inventor user here.

I am trying to make an app that reverses a sentence (i.e. user inputs "reverse this please" and it outputs "please this reverse"). I have attached a picture of the blocks, was just wondering if someone could tell me where I'm going wrong? or maybe point me in the right direction?

Thanks! :slight_smile:

You created a 2 dimensional list by adding a list as an item of another list.

Instead, set the global list to the result of the split, which itself is a list.

1 Like

Thank you! Really appreciate the help :slight_smile:

You're welcome.

P.S. You didn't even need the global variables for this, except maybe for debugging and to reduce the width of your code in the Blocks Editor.

You could feed the data straight through from input to output in one longer pipeline.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.