Logo

Programming-Idioms

History of Idiom 110 > diff from v87 to v88

Edit summary for version 88 by programming-idioms.org:
Restored version 86: Doesn't work, see http://codepad.org/ZJgH1VAT

Version 87

2022-04-25, 18:46:42

Version 88

2022-05-05, 08:34:31

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
if s=="" then blank=true else blank=false end