What is a ternary conditional operator (?:)?

Asked

Viewed 30 times

0

I was browsing the site looking for fonts for a reply and noticed that there is no no questions on the subject. As it is something very popular, I think it would be interesting to have an answer on the subject in depth on the site.

What is the ternary operator? How it works?

Related:

Differences between If and ternary operator

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.