eolas/zk/Check_if_value_null_in_Bash.md

140 B

tags created
shell
Wednesday, February 19, 2025
if [ -z $var ]; then
  # Value is null
else
  # Value is not null
fi