# bit.band

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

```lua
number bit.band( number value, ... )
```

## Açıklama

Belirtilen tüm değerler için bit düzeyinde `and` (ve) işlemini gerçekleştirir.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **value**: Değiştirilecek değer.
2. [vararg](https://gmod.tr/wiki/vararg) **...**: Bit düzeyinde "and" (ve) işlemi yapılacak değerler. Opsiyonel.

## Döndürdükleri

1. [number](https://gmod.tr/wiki/number): Bit düzeyinde "and" (ve) işleminin sonucu.

### Örnek

```lua
local a = 170    -- ikilik tabanda 10101010
local b = 146    -- ikilik tabanda 10010010
print( bit.band( a, b ) )
```

**Çıktı:** 130 (ikilik tabanda 10000010)

### Örnek

Belirli bir hasar türünü test eder.

```lua
local myDamage = bit.bor( DMG_BULLET, DMG_RADIATION )
local isBulletDamage = bit.band( myDamage, DMG_BULLET ) == DMG_BULLET
print( isBulletDamage )
```

- [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/bit.band
