Substring after

I had some problems in my project and found that the substring-after block is doing some strange stuff.
I already tested it in some seperate project and reloaded the libery.

The block gives me the inverted substring before the char i use and sometimes it uses one more char wich comes after.

Screenshot 2025-01-22 142113

Does it for me as well
untitled script pic (84)

started happening for me too...

oWelleh!

Same, I found out why.

...should be changed to:

The code of "substring after" block uses blank for the custom block above, which won't work properly because of using the former code. Fixing using the latter block fixes the issue. Meanwhile, you can do this.

The problem is actually with the

untitled script pic (85)
reporter and the fact that the end variable isn't being reported as zero even though it's set to be of type number

Hopefully Jens will be along shortly with a fix :slight_smile:


image
you can add a 0 to the "substring" reporter in the definition of the reporter to fix the issue

yes, that'll fix it, thank you, @poussin !

image
shouldn't it be < < (end) = [0] > or < (end) = [0] > > ?

I've tried to fix this. Please let me know if you encounter this - or any other issues. Thank you!

Works for me now in V10.4.2
U5L3-ProcessingData script pic (1)

for some reason, i checked the definition of the "substring frop pos. to pos. inclusive" and the "substring after str" reporters and nothing seems to be different but the block works correctly now so idk

Jens fixed something in the engine room so the original block definitions now work again :slight_smile: