I am creating an app in which you have to enter a word or a sentence and it gives you the number each of the letters represents and the total amount. So far I can have the full output of the written sentence in the textbox, but I want first to have each of the words separated and then the full text, as seen in the pink picture- this is what I want to achieve.
In yellow - my current output: it just shows ¨HOLA MAMA¨ , and want it to divide the words HOLA and MAMA.
I am attaching my current blocks with which I can show the full text without showing each of the words separately.
Is there any way I can do this automatically? for example, if the user inserts a sentence of 15 words, how can I code it to automatically divide each of the words and then put them together in one sentence at the end?
So far I can separate the words
using index, so for index 2, if I only have one word in textbox, it gives me an error that there is no index 2, ad so on .. .
Thank you very much for this, it is what I was looking for. Very much appreciated.
Just another last question, Do you know how can I add the amount of 30 for each of the letters and therefore the final suma and lupa to be 30+ in another different label, using the blocks given by you and still having the output from your blocks ?
In this case, for example, A would be 31, B - 32 and so on ...