• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: If Functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: If Functions


  • Subject: Re: If Functions
  • From: Moray Taylor <email@hidden>
  • Date: Sun, 11 Jun 2006 11:01:06 +0100


if ([myString isEqualToString:@"yes"]) { //do whatever you want to do here

}

Moray

I have a really simple question, which I cannot find the answer to anywhere.

How do I do an If() function in Cocoa? It does not seem to be documented!

I have a string variable that will be equal to either "yes" or "no". How do I do this?

Giles Williams.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40dataactive.com


This email sent to email@hidden

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/ email_________________________________________________________________ _____

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >If Functions (From: Giles Williams <email@hidden>)

  • Prev by Date: If Functions
  • Next by Date: Re: If Functions
  • Previous by thread: If Functions
  • Next by thread: Re: If Functions
  • Index(es):
    • Date
    • Thread