Godot Version
4.2.1
Question
I am able to write to my database (SQLite), query my database, and pull in the data from the database… I can print the results of the query.
My question is, "How do I pull a specific element from the query result (the query uses a (select_rows) query… here are the results I receive:
[{ “count”: 32 }]
The database table has a field named ‘count’ which holds the quantity of that specific inventory item that the player has…
I want to use the ‘count’ value (32 in this case) to add or subtract from the count based on another field…
Everything works, except I do not know how to pull the ‘32’ from the database query results as a variable that Ii can then use in a calculation before updating the database with the new value.
Any help would greatly appreaciated.