You don’t need to do this.
Set the really long code thing you want to be equal to u or v to a variable.
Create this block [said variable] = u
Duplicate it and then create this [said variable] = v
Now put both of those in either side of the or block.
Now put the or block in the if block
2 Likes
Put that in the first space of the equal block (also move the create text with u and v to the first space and put u in the first space, v in the second)
2 Likes
Ok, so like this:
If [in text (create text with v, u) find first occurence of text [the long code you showed] != 0]
Also this should prolly be recategorized to help
1 Like
Use two equals signs; one on each side of the or gate.
2 Likes
Yes that is what i was getting at but you want to compare the really long block to v or u right
1 Like
I think toronto’s suggestion has u in both spots, and you set u to the very long text you originally had.
2 Likes
How do I compare it? If it’s in an “if” block?
1 Like
So you would switch the ? And the . to the really long block code (make it a variable). This would compare it
1 Like
I can’t make a varaible set to a “in text” block.
1 Like
You should be able too. Is the rest of the code this:
gimmaster12345:
1 Like
Sorry, it was a bug, I reloaded.
2 Likes
Thats Awesome!
I wouldn’t change this now since it took a while to fix this but just for future reference you don’t need to do
in text [property] get string from [property] to [property] + 1
You can just do
in text [property] get letter number [property]
This will save blocks if you need it
2 Likes
system
Closed
March 16, 2024, 8:28pm
35
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.