Logo

Programming-Idioms

History of Idiom 110 > diff from v94 to v95

Edit summary for version 95 by TJC games:
[Lua] Fixing an error and trimming whitespace. 14 bytes!

Version 94

2022-07-02, 11:56:25

Version 95

2022-07-02, 11:59:49

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]"
Code
blank=s=="%s+"