I don’t know what the issue is with the below code, can I have some help?
(It crashes Thunkable.)
It helps if you explain what you’re trying to do. It’s not obvious for someone looking at your blocks for the first time.
What is the value of app variable LabelMaker
? And what is the expected result you hope to see from all of these blocks?
One cause of the crash is probably that you are treating app variable LabelText
as both a list variable (make list from text) and a text variable (make text from list). You need to pick one variable type and stick with it.
I don’t quite understand the logic of your blocks. You’re setting the value of app variable LabelText
a bunch of times but only the last change is going to stick. The other blocks don’t have any effect on the result. Oh wait! Did you mean to make list from text
with the variable app variable LabelText
in the bottom set of blocks?
Despite of the result, it should work if you reverse the variables in the last step.
What I’m trying to do is replace any of the following characters in my list: , " } { :
LabelText is already a list.
So my logic is that if I turn it into text (not using comma as a delimiter because that would be replaced) then I can replace all the characters I don’t want, then turn it back into a list.
What do you mean?
I understand but I believe you need two variables for this. One that is initialized as an empty list and one that is initialized as an empty text string. Otherwise, it’s going to continue to crash if you assign a list value to a text variable or a text value to a list variable.
@muneer was suggesting that you change app variable LabelMaker
in the last block at the bottom to app variable LabelText
.
Oh my goodness, I am such a goof.
What I did was I put the wrong variable in the make text from list and make list from text, I must have misread the variables.