Check that a string is not empty.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_validate_text

Purpose

Check that a string is not empty.

Arguments

  • $1 — Candidate text.

Returns

  • 0 if nonempty (including whitespace-only strings); 1 otherwise.

Usage

  sgnd_validate_text "Hello"