Recently I came upon a weird line in a code(Second answer, couldn't find a way to link directly to the answer).
This is it:
reverse = !reverse ? 1 : -1;
Well, I guess specifically the use of boolean ? option : option;
This looks like legitimately nothing I have encountered so far. I cannot find it in google! Please explain what this is, what is the syntax and how to use it, because I really want to know what this is, since it looks like some advanced smart thing...
Is that a if-else statement? Thanks for reading this and answering! :D