Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Is Blank Modifier

Returns true if the string contains only whitespace chars.

ghost:
zombie: BRAINSSSS
{{ if ghost | is_blank }}
{{ if zombie | is_blank }}
@if (Statamic::modify($ghost)->isBlank()->fetch()) @endif
@if (Statamic::modify($zombie)->isBlank()->fetch()) @endif
true
false