What are keyvalues and how do they work?

    so a keyvalue is like a stored variable that saves across refreshes, users, all that stuff

    Awards

    • â’¸ 9 from foxpro

    foxpro Bruh. How do you use the data browser without knowing what a goddamn keyValue is.
    It's a variable stored on the CDO's cloud, that has a string name, associated with any value less than 4096 bytes. This can be any primitive data type (string, dictionary, number, list)... It's basically the variables stored online. Honestly, that's all there is to say.

      to set a keyvalue use
      setKeyValue(A,B);
      replace A with the name of the keyvalue, like "visits", and B with what you want to set A to.

      to get the value of a keyvalue use
      getKeyValue(A, function(b){
      });

      replace A with the name of the keyvalue, and use B INSIDE THE FUNCTION to use the keyvalue

      so to console log the value of keyvalue "visits", put
      getKeyValue("visits", function(b){
      console.log(b);
      });

        Should I be concerned?

        Chat