---
title: std.suffixof
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/strings/std-suffixof
---

```
BOOL std.suffixof(STRING s, STRING ends_with)
```

**Available in:** all subroutines

True if the string `s` ends with the characters of the string `ends_with`. An empty string is not considered a suffix.

Returns `false` otherwise.

See `std.replace_suffix` for substituting a suffix.

## Example

```vcl
declare local var.bool BOOL;
set var.bool = std.suffixof("rectangles", "angles");
```
