here’s a use case, in the dataStore you can create two exposed functions
exposed function getLogs() : string
var logcs : cs.log
logcs=cs.log.new()
if (session.storage.logs == null)
use (session.storage)
session.storage.logs=objectCopy(logcs, kShared)
end
end
return session.storage.logs.getLog()
exposed function addLogs(note: string)
if (session.storage.logs != null)
session.storage.logs.addEntry(note)
end
logs is a text component to display the logs
log is a text input and add is a button
first you should create 2 data sources (both of them are strings)
bind logs to the text component to display logs and bind log to the text input