<div dir="ltr">Hey,<div><br></div><div>i am using ternary operator with optional variable. like below ex.</div><div><br></div><div>







<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><b>var number:Int?<br></b><b>let result = number &gt; 0 ? 1 : 2  </b></blockquote><p class="gmail-p1" style="text-align:left"><b>here i am getting this waring : <font color="#bf9000">comparison operators with optionals were removed from the Swift Standard Library. Consider refactoring the code to use the non-optional operators</font></b></p></div><div>Note : i must need to use ternary operator for checking.</div><div><br></div><div>Regards</div><div>Suresh Kansujiya</div></div>