How do I Check if dictionary has a word?

From the Asset Store
Word Guess
$10 USD
Questions and answers are stored in simple txt-files. Cool animation of everything
  • Basically what i am trying to do is:

    What already done:

    _________________________________________

    Ajax my Realtime Databases and request info ( works fine)

    _________________________________________

    .

    Ajax LastData output will be like:

    "Json": {

    "Apple":"Red;Small;Delicious;Water;Green;Big"

    "Banana":"Yellow;Small;Big"

    "Watermelon":"Water,Red;Delicious;Big;Giant;Green;Seeds"

    "c2dictionary":"true"

    }

    .

    __________________________________________

    .

    And a Dictionary will load (Works fine)

    What I need:

    I will text a text on the textbox like (e.g. Water) and compare if the dictionary in one of it keys have the value "Water"

    And then call a Ajax using each key that have the word "Water" Like:

    Ajax: Tag:"load" // url: MyDatabasesUrl&"/"&Dictionary.currentkey&".json"

    .

    .

    Sry my bad english

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can repeat Dictionary.KeyCount to check Dictionary.Get("" & loopindex) that contains your keyword or not.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)