Difference between an variable set to nil and 0

Posted by G.P. Burdell on Stack Overflow See other posts from Stack Overflow or by G.P. Burdell
Published on 2010-06-17T04:06:07Z Indexed on 2010/06/17 4:13 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
if (myFloat == nil){
    \\Do Method
}

In the above situation, the method will run only if myFloat is nil. Will it also run if myFloat was set to 0?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about difference