Does Swift have a ternary operator?

Swift has a rarely used operator called the ternary operator . It works with three values at once, which is where its name comes from: it checks a condition specified in the first value, and if it’s true returns the second value, but if it’s false returns the third value.

Sizin İçin Seçtik  Hangi bankada döviz bozdurulur?

Leave a Reply

Your email address will not be published. Required fields are marked *