Run »
thislist <- list("apple", "banana", "cherry") "apple" %in% thislist
[1] TRUE