• 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: Or
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Or


  • Subject: Re: Or
  • From: Matthew Cox <email@hidden>
  • Date: Fri, 5 Oct 2001 19:54:35 -0400

||. Or, in your example:

while ( (secFibi != 0) || (fibi != 1) )

Those || are the result of shift-fowardslash (under the delete key, above return)

Also, if you mean 0 as false, and 1 as true, generally NO and YES perform the same function.

And BOOL is the Objective-C type for Boolean Logic.

On Friday, October 5, 2001, at 07:40 PM, email@hidden wrote:

How do I say "or" in objective-C? I've read books, but can't find the key combo, and just typing in or doesn't work.

Example: while (secFibi != 0 or fibi != 1)
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Or (From: email@hidden)

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