#I am missing a rule with strings, what is it?

12 messages · Page 1 of 1 (latest)

junior ferry
fierce whale
#

str1>str2 ?

junior ferry
#

str1.find(str2) < str1.length() // this should execute

#

this is the part that I am not sure what I am missing

fierce whale
junior ferry
#

If string 2 is within string 1 I want it to print the message

vernal gyroBOT
#

@junior ferry has reached level 1. GG!

junior ferry
fierce whale
#

my laptop battery is low, i might be able to help later 🥹 (bye for now)

barren marten
#

Doing that in a if is true when the string is found

junior ferry
#

why doesn't mine work ?