Logo

Programming-Idioms

History of Idiom 110 > diff from v74 to v75

Edit summary for version 75 by programming-idioms.org:
Restored version 73: No.

Version 74

2021-12-14, 09:53:04

Version 75

2021-12-14, 11:27:08

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
IFS( ISBLANK([Time Out]), "000:00:00", (([Time Out] - [Time In]) < "004:00:00"), ([Time Out] - [Time In]), TRUE, ([Time Out] - [Time In] - "001:00:00") )
Code
final blank = s == null || s.trim() == '';