A simple condition?

This forum is currently in read-only mode.
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • How do I determine whether among all instances there exists an instance with key set to specific value? It has to be a condition. Like this:

    NEGATIVE (Exists? Hashtable("Key")="Test")[/code:2ckfbmej]
    I would like a clean and simple solution rather than having to devise a bulky workaround.
  • for each "my object"

    +"my object" private variable "key" = "yes"

    do actions

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That is what I was not looking for, I was hoping for a system expression or an evaluation that checks if ANY object instance has a certain key with exact value, but oh well, I'll have to go with a workaround, which requires a whole event and is rather unwieldy.

    Hmm, come to think of it, I'll need some sort of 'search' function after all... that searches all hashtables for an exact key and/or value. Might as well create a function especially for that.

    Thanks, though!

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