Simple question about comparing text

Get help using Construct 2

Post » Tue Oct 22, 2013 3:54 am

I've noticed that if I would like to compare text, the text has to be exact.

Example:

Wild Boar
Tarantula

If I do compare text for "Wild Boar", the output would not work because there is another line of text after it.

How do I make it so that as long as the text I'm comparing is present, there will be an output?
B
3
Posts: 1
Reputation: 177

Post » Tue Oct 22, 2013 4:15 am

find(str, texttofind) > -1
B
17
S
8
G
4
Posts: 93
Reputation: 3,190


Return to How do I....?

Who is online

Users browsing this forum: evillair, unicornspitfire and 11 guests