aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/str_in.md
blob: abcb8bdc0c785c8c70b8bdcae9e783c6b6093637 (plain)
1
2
3
4
5
6
7
8
9
10
11
## `in` operator for strings

`in` and `not in` operators now works on strings, in addition to arrays and
dictionaries.

```
fs = import('fs')
if 'something' in fs.read('somefile')
  # True
endif
```