Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

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