# string.EndsWith

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/string.EndsWith
- **Çeviri tarihi:** 2025-09-08

```lua
boolean string.EndsWith( string str, string end )
```

## Açıklama

İkinci olarak girilen metnin, birinci metnin sonuyla eşleşip eşleşmediğini döndürür.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **str**: Sonu kontrol edilecek olan metin.
2. [string](https://gmod.tr/wiki/string) **end**: Birinci metnin sonuyla eşleştirilecek olan metin.

## Döndürdüğü Değer

1. [boolean](https://gmod.tr/wiki/boolean): Eğer birinci metin ikinciyle bitiyorsa veya ikinci metin boşsa `true`, aksi takdirde `false` döndürür.

### Örnek

Bir metnin sonundaki argümanları arar.

```lua
local endswith = string.EndsWith("Supercalifragilisticexpialidocious", "docious")
if endswith then
	print("Marry Poppins")
end
```

**Çıktı:**

```lua
Marry Poppins
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/string.EndsWith
