Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(i== x || i == y || i == z )
- if (i == ( x || y || z ))
- switch (i) {
- case x:
- case y:
- case z:
- ....some code....
- break
- default:
- ....some other code....
- }
- NSArray *matchingNumbers = @[@1,@2,@3,@4,@5,@6,@7,@8];
- NSNumber *checkedNumber = @3;
- if ( [matchingNumbers indexOfObject:checkedNumber] != NSNotFound)
- {
- //...
- }
- if ([myArray containsObject:i]) {
- n = 0;
- while (n<49) {
- if (n==[myArray objectAtIndex:n]) {
- //OR statement returned true for one of the 50 objects...
- }
- }
- if ((i==x)||(i==y)) {
- string=@"hello";
- }
- string = ((i==x)||(i==y)) ? @"hello";
- if ((i==x)||(i==y)) {
- string=@"hello";
- } else {
- string=@"goodbye";
- }
- string = ((i==x)||(i==y)) ? @"hello" : @"goodbye";
- myNumber = ((i==x)||(i==y))*(z+w);
- if ([[[NSMutableArray alloc] initWithObjects:x,y,z,a,b,c,d,e,f,g,h,j,k,l,nil] containsObject:i]) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement