Basic question but I can't find any solution !

26 views
Skip to first unread message

Zipette

unread,
Jan 23, 2015, 5:34:52 PM1/23/15
to swift-l...@googlegroups.com
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.

Jens Alfke

unread,
Jan 27, 2015, 11:35:59 PM1/27/15
to Zipette, swift-l...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages