Logo

Programming-Idioms

History of Idiom 110 > diff from v96 to v97

Edit summary for version 97 by programming-idioms.org:
Admin deletes impl 5792: Doesn't work, see http://codepad.org/nFSQUCeb

Version 96

2022-07-02, 12:02:21

Version 97

2022-07-02, 18:55:33

Idiom #110 Check if string is blank

Set the boolean blank to true if the string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set the boolean blank to true if the string s is empty, or null, or contains only whitespace ; false otherwise.

Code
blank=(s=="%s+")or(s=="")or(s==nil)