Logo

Programming-Idioms

History of Idiom 110 > diff from v86 to v87

Edit summary for version 87 by _:
New Lua implementation by user [_]

Version 86

2022-03-15, 14:51:48

Version 87

2022-04-25, 18:46:42

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