View Single Post
Old May 19th, 2012, 05:13 AM   #1 (permalink)
tiagojanz
New Member
Thread Author (OP)
 
Join Date: May 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default equality madness

Hi, I am trying to iterate trough a list, since I cant post images I'll try my best to post the code



Code:
def found = false
def explo make a list
  
                           Espinho
                           Lisboa
                           Santa Maria dos Olivais

web.gottext
{
     found = true
     find(responseContent1)
     ifelse(found)
         then do{
              some action
         }
        else do{
              some other action
        }
}

find(search)
{

     foreach local  in list explo
    {
        if test  text= (arg[0]:local, arg[1]:search)
        {
              set found = true
        }

    }
}


When search argument is Santa Maria dos Olivais it should find it in the explo list right?
tiagojanz is offline  
Reply With Quote