check for falsy values (null, undefined, NaN, false, 0, "")

PHOTO EMBED

Wed Dec 29 2021 12:35:48 GMT+0000 (Coordinated Universal Time)

Saved by @KarenStewart #javascript

if (!variable) {
  // When the variable has a falsy value the condition is true.
}
content_copyCOPY