Basic question but I can't find any solution !

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Basic question but I can't find any solution !

Zipette
Hello,
It seems to be a very esay problem but I can't find what's wrong with this code bellow:

var a:Int=5

if(a !=0)

{

    println("Hello Word")

}


The compiler complains that the "if(a !=0)" is not correct ! So how can compare the var "a" to 0 in swift ??


Thanks a lot.
Zipette.

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/0120df55-be0c-4708-b25c-bd7f74afa1e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Basic question but I can't find any solution !

Jens Alfke
Oops — this thread already showed up on the list and was answered.
I just got this message in my moderator's inbox flagged as potential spam and unblocked it before I recognized it.

—Jens

--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/3012DBB5-F8CC-4D16-A513-B67435651255%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.