Type Function Return value String, Number, or Table Revision Release 2024.3703 Keywords iCloud, sync, storage, Key-Value Storage, KVS, get See also iCloud.set() iCloud.synchronize() iCloud.*
Retrieves the value from a stored key. It will return the same type that the value was stored as (string, number, or table). If the key is not found in KVS, this function returns nil
.
Note that values are not instantly synchronized across the user’s
iCloud.get( key )
String. The key name from which to retrieve a value.
local value = iCloud.get( "touches" ) local json = require( "json" ) local someTable = json.decode( iCloud.get( "data" ) ) print( json.prettify( someTable ) )