Good afternoon (or morning). Today I will make the daily challenge.
Task: make a procedure with three string input, to fill in the blanks of the sentence(s)
One word per blank ( _ ).
Output: The sentence with blanks filled.
- Sentence: “Hello my_. Nice to_you_.” (with
- Words: “meet friends guys” (separate with space but the order is not ascending nor descending.)
- Order: “2,1,3” (the order of the word in csv format)
“Hello my friends. Nice to meet you guys.” (a text string)
Will they be in a list?
Also, can there be any number of gaps/words ?
Here, you would have later:
“Hello my friends .” Because you have the space after the underscore… can you just remove the space behind it?
Btw, if you
I have a solution with 29 blocks.
And why it is matter if i don’t remove the space? just curious.
Then my out put would be:
So I can’t set the last input for the variable to
list from csv row text 2,1,3 ?
no, the input should be string, but you can make whatever you want in the procedure.
Ok. I’ll post my solution here now, but be aware! It’s completely untested since I have no Companion.
Now my solution has 31 blocks
Please test it for me since I don’t know if it works.
Thanks. Gtg now, will come back later. Happy Koding!
Before you go can you tell me what does x x2 and x3 means?
Oh yes. sorry. I updated my Solution.
It didn’t work, tips you should use replace list item instead of set item
Edited, Did it work now? Btw 35 blocks now.
Yes but the output don’t have any space.
It should be
Hellomyfriends.Nicetomeetyouguys if it was like you say…
but anyway, I will work on it…
Are the words inserted however?