Quote:
Originally Posted by Craxor
PHP Code:
if( get_pcvar_num( g_Cvar ) ) { // If the cvar have a pozitive value .. ( a pozitive value means bigger than 0, so 1 , 2 , 3 .. etc. } else { // If the cvar have a negative value ... }
|
No, if(expression) checks if expression is non-zero. Only 0 is false, everything else, including negative values, is true.