Listing 7: Suche nach einem Array-Element. if(str = IPrefsObjects->DictGetObjectForKey(dict, "the string")) { STRPTR text; IPrefsObjects->PrefsString(str, &err, ALPOSTR_GetString, &text, TAG_DONE); if(!err) IDOS->Printf("Der Text zu 'the string' lautet: '%s'\n",text); else IDOS->Printf("Text von Schlüssel 'the string' nicht verfügbar !\n"). } else IDOS->Printf("Keinen passenden Prefs-Eintrag zu 'the string' gefunden\n").