Posted 16 May 2013 - 07:53 AM
Hi, I'm using this persistence API in my turtle programs: http://pastebin.com/i9XBtvS2
The API is working perfectly, but it throws an error if I try and call a variable that hasn't been stored yet. I would like to know how I would change the API so that instead of throwing an error, it could return a string or a 0 or a nil or something else appropriate. Thank you for your help!
The API is working perfectly, but it throws an error if I try and call a variable that hasn't been stored yet. I would like to know how I would change the API so that instead of throwing an error, it could return a string or a 0 or a nil or something else appropriate. Thank you for your help!