on-internet
← Community

What is this statement doing? [closed]

Stack Overflow ·

I am guessing that this line: my $last = $last_game ? 1 : 0; is assigning 1 to $last if $last_game is true, otherwise $last gets 0. Am I correct?

Comments

Sign in or sign up to comment and upvote.

No comments yet.