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

Has Upper Case Modifier

Returns true if the string contains an uppercase character, false otherwise.

loud_noises: "I DON'T KNOW WHAT WE'RE YELLING ABOUT!"
{{ if loud_noises | has_upper_case }}
@if (Statamic::modify($loud_noises)->hasUpperCase()->fetch())
@endif
true