ID:137664
 
If there isnt a way i would like you to add this to Dream Maker code..

A wildcard symbol.. for example:

if(usr.blah == "* test *") //* being wildcard
usr << "1"
else
usr << "2"

so if usr.blah was anything with "test" in it, it would say "1".. usr.blah could be "radio test dog" and it would be 1..

Thanks
Rcet wrote:
If there isnt a way i would like you to add this to Dream Maker code..

A wildcard symbol.. for example:

if(usr.blah == "* test *") //* being wildcard

The way you'd do this now is:

if (findtext(usr.blah,"test"))

..and that'll return 1 if usr.blah contains "test" anywhere.

Z
In response to Zilal
Zilal wrote:
Rcet wrote:
If there isnt a way i would like you to add this to Dream Maker code..

A wildcard symbol.. for example:

if(usr.blah == "* test *") //* being wildcard

The way you'd do this now is:

if (findtext(usr.blah,"test"))

..and that'll return 1 if usr.blah contains "test" anywhere.

Z

Oh, also.. There's a findText() proc, that is case sensitive. It's used in the same matter.
<code> if(findText(usr.blah,"Test")) </code>
Procs Learned
findText proc - Case Sensitive
findtext proc - NOT case sensitive