title: How to get a true/false response from sqlite
body: <p>I am making a wallet system with a discord bot. I am using sqlite3 as my database. I want to make the balance command check the database for the user ID. I have tried a few different methods and i have always gotten a syntax error. How would i check if the UserID is in the DB, and then if its not run this code:</p>
  <pre><code>c.execute(&quot;INSERT INTO Wallets VALUES(:name, :ID, :Bal)&quot;, {&quot;name&quot;: username, &quot;ID&quot;: user, &quot;Bal&quot;: 0 })
  </code></pre>
  <p>Can someone help me, I have searched a lot and didnt find an solution that would work.</p>