to easily allow a boolean argument to be omitted, study this example: function searchMyList myList,toFind,matchWholeFlag -- allow matchWholeFlag to be omitted (false) set the wholeMatches to (matchWholeFlag = true) return lineOffset(toFind,myList) end function -- D