Logo

Programming-Idioms

History of Idiom 39 > diff from v12 to v13

Edit summary for version 13 by :

Version 12

2015-08-21, 23:17:52

Version 13

2015-08-22, 00:46:05

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 := pos(word,s)<>0;