find string within a string

Questions about GP commands and how to do things

Moderator: MSandro

Post Reply
SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

find string within a string

Post by SimpleSi » Aug 24th, '17, 11:06

I'm having problems in consistently testing if a string exists within another string

Sometimes the contains block in the Data category is happy to play and give me a true/false output

But other times it complains that it doesn't like the data types and throws an error

for the moment - I've just written a simple shared block that returns either 0 or the position of the substring inside the main string but I feel that this should be an inbuilt function
0.png

Post Reply