How to make condition if "result code":"0" in android
<p>I am getting server response like "resultcode":"10" and I want to make condition if resultcode is 0 then do something .How can I do that </p>

<pre><code>if (response.getString("resultDesc").equalsIgnoreCase("Transaction Successful")) {}
</code></pre>

<p>Here I want to replace Transaction successful with "0"</p>