New topic Closed topic
avatar image
1
Include?() expression for a string?
By Created , last editted

Hi,


I want to check if a string contains another string with the include?() expression in an condition action event, but this only seems to work for arrays, not for strings. Is there a expression to do this for a string?


I'd like to do something like:

var:a = "The Betty Blocks Platform"

include?(var:a, "Betty")     #=> true



Hi,


I want to check if a string contains another string with the include?() expression in an condition action event, but this only seems to work for arrays, not for strings. Is there a expression to do this for a string?


I'd like to do something like:

var:a = "The Betty Blocks Platform"

include?(var:a, "Betty")     #=> true


Answers
Sort by:

This topic is closed.