You can do it like this: clear list(%list) add list to list(%list, $list from text("orange banana juice manggo coffee", $new line), "Delete", "Global") set(#position, 0, "Global") loop($list total(%list)) { if($comparison($list item(%list, #position), "=", "juice")) { then { alert("\"juice\" is at list position {#position}") } else { } } increment(#position) } John