Swift Boolen tuples optional Degiskenleri(VIDEO TUTORIAL) LESSON-II

Words
100
Reading
1 min
Listen
Play
9y

Selamlar , Bugünkü dersimizde , diğer derste eksik kalan değişkenlerini işledik . Bu son değişken konumuz. Yavaş yavaş projelere doğru yola çıkıyoruz . İyi seyirler , iyi dersler .

Greetings, In today's class, we have studied the remaining variables that the other derste are missing. This is the last variable position. We are slowly approaching the project. Good looking, good lessons.

Ders Notları :
Course notes


import UIKit

*var str = "Hello, playground" **//İma yolu ile atama Xcode anlar tipi**

var str2:String = "test" **//Açıktan atama Xcode a bildirilir tip**

//Boolean -> **true veya false**

// **if -else koşul ifadesi**

// **Kpss test uyguylamasında daha fazla test için para ödenen uygulama**

var isPaid:Bool = false

isPaid = true

let a = 5

if a == 5 {

    

    print("Ödemeniz başarıyla alındı, içeriği görebilirsiniz")

    

}

    

else{

    

    print("Ödeme yapılmadığından içeriği göremezsiniz")

    

}

**// Tuples birden fazla değer ile kullanılır**

let test = (404,"Sayfa Bulunamadı") **// İlk değişken integer ikincisi String veya hepsi integer veya hepsi string**

let(statusCode, status) = test

print(statusCode)

**// Optionals**

var x:String? = "Swift"

**//İlk değer olarak bizden kesin birşey istiyor.**

**//İster boş değer verin, isterseniz dolu verin ama değer verin**

print(x ?? "Geçersiz Değer")

Videoma ingilizce çeviri yapabilirsiniz
English subtitles can be added to the video.

Kodlara github adresimden'de ulaşabilirsiniz
You can access the code file from my "Githup" account
https://github.com/kerimcaglarr/Boolen-tuples-optional



Posted on Utopian.io - Rewarding Open Source Contributors

Swift Boolen tuples optional Degiskenleri(VIDEO TUTORIAL) LESSON-II | Ecency