User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
key-value_storage [2019/01/09 11:00]
akuzmuk created
key-value_storage [2019/01/09 11:20]
akuzmuk
Line 12: Line 12:
 The Set function saves value into key-value storage. **key** is an identified of value. **value** is a data that you want to save to storage. The Set function saves value into key-value storage. **key** is an identified of value. **value** is a data that you want to save to storage.
  
-Functions return ​true on success and false if any error occurred.+Function returns ​true on success and false if any error occurred.
  
 Example: Example:
Line 18: Line 18:
  
 function main (userId) function main (userId)
-    if (!Set("​my permanent variable",​ 42)) then+    if (Set("​my permanent variable",​ 42) == false) then
        ​ERROR("​Can'​t save data to storage."​);​        ​ERROR("​Can'​t save data to storage."​);​
     end     end

Page Tools