Doubt in syntax

Asked

Viewed 17 times

0

I was seeing a code and saw this part with some things I didn’t understand. What does this part " > 90 ? 1 : 0 "?

campo[x][y] = random(100) > 90 ? 1 : 0;

No answers

Browser other questions tagged

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