.. highlightlang:: us .. _obj_has_key: obj_has_key =========== .. index:: obj_has_key .. us.tag obj_has_key NOTREADYGERMAN New410 obj :ref:`obj_has_key` prüft, ob der gegebene Schlüssel (key) existiert. .. function:: bool = obj_has_key(obj, key) .. us.return **Returnwert** *bool* ist TRUE (1), wenn der Schlüssel existiert. .. us.params **Parameter** .. uparam:: obj *obj* ist ein mit :ref:`obj_create` erzeugtes Objekt. .. uparam:: key *key* ist eine ganze Zahl oder ein String. .. us.example **Beispiel** :: obj = obj_create() obj[1] = 1 obj[3] = 3 // integer key obj.val = "Test" // String key print obj_has_key(obj, 2) // 0 print obj.has_key(2) // 0 print obj.has_key(1) // 1 print obj.has_key("val") // 1 .. seealso:: :ref:`uberblick-uniscript-objekte`, :ref:`obj_lookup` :sub:`id-1319100`