Logo

Programming-Idioms

History of Idiom 39 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-20, 16:02:03

Version 9

2015-08-20, 18:22:04

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Code
ok = word in s