Yes I know it's pretty straightforward. As the "?" sign is used to replace "...". And ternery operation isn't used frequently.
For boolean NOT, use

if (condition == 0) statementlist;

I totally forget to implement it.