Forum Discussion

Timmey's avatar
Timmey
Regular Visitor
6 years ago
Solved

Check if an object exists twice

Hi together!   On a webpage, i've got two picklists. Currenty i find the objects within the picklist with the NativeWebObject.Find method. Now i wan't to check, if there are two objects with ...
  • RUDOLF_BOTHMA's avatar
    6 years ago

    Hi Timmey 

     

    Without too much info on your exact implementation, I could suggest a general approach.  You may need to add an interim step find the two picklists individually first and then test in both of them using something like

     

    var item1 = picklistleft.find[("SearchedText"],[sometext]);
    var item2 = picklistright.find[("SearchedText"],[sometext]);
    
    if(item1.Exists && item2.Exists)
    {
    return true;
    }
    else
    {
    return false;
    }