Thread
:
Namechecking, beginner question
View Single Post
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
12-26-2015 , 16:30 Re: Namechecking, beginner question
#
5
Quote:
Originally Posted by
Icon315
StrContains() doesn't return true/false, i think i remember it used to, it returns the position in the string where the substring is located or -1 if it didn't find it.
So
Code:
if(StrContains(clientName, "test", false) != -1){
is what you need
It never did in SP.
I think it is true for some other languages/frameworks though (C#, Java?).
__________________
Santa or Satan?
Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Last edited by Dr. Greg House; 12-26-2015 at
16:30
.
Dr. Greg House
View Public Profile
Send a private message to Dr. Greg House
Find More Posts by Dr. Greg House