Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check if NSString = a specific string value?

Hi I am woundering if you can check to see if a NSString equals a specific value say for instance a name of a person?

I am thinking along the lines of

if (mystring == @"Johns"){     //do some stuff in here } 
like image 596
C.Johns Avatar asked Sep 01 '11 04:09

C.Johns


1 Answers

if ([mystring isEqualToString:@"Johns"]){     //do some stuff in here } 
like image 138
Vanya Avatar answered Sep 18 '22 17:09

Vanya