If (variable)
if (some_variable)
do_something;
Anything that’s not a 0 is a true value in if
If with load of a return value into a variable
Ensure you enclose the assignment in brackets or it won’t work correctly
if ((count = some_function()) > -1)
{
//count contains the return value
}
