ContributionsMost RecentMost LikesSolutionsRe: How to make a IF-query with changing listbox-items? Thanks Re: How to make a IF-query with changing listbox-items? Hello, me again ;) how would the code Shankar_R posted would look like in DelphiScript? thanks again Re: How to make a IF-query with changing listbox-items? thank you very much How to make a IF-query with changing listbox-items? Hello, i have a problem with a IF-ELSE query. For example my Listbox contains 4 items: Index0 = house; Index1 = tree; Index2 = car; Index3 = cat. Now depending on the database my application uses the listbox items can vary. It can either show cat and car or just cat. I use a IF-ELSE query: (i´m not used to any script language, i only used the GUI and i hope you can understand my "logic") If listbox.Item.index(2) = car begin click car; end; Else Begin click cat end; this works fine but now depending on the database my application uses the ItemIndex of the car-Item (or any other Item) changes from 2 to something else. Is there a Solution where i can make a IF-ELSE query with the name of the Item ? Anyone have any ideas? Thanks