var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: mysql if statement evaluating int data type 0 to false?
I have a mysql stored procedure e.g:
If i call this procedure with param1 as 0 the if statement does nothing but works if param1 is of any other value other than 0. Why is the above statment evaluating param1 with a value of 0 as null?
CREATE PROCEDURE simpleproc (param1 INT)
IF param1 <> Null THEN
NULL is not equal to any value, and NULL is not unequal to any value, either
try param IS NOT NULL