First off, No semicolon after the if statement.
also, replace the comma with a period an compare it to 1
so it will look like this


if(inventory_main.VISIBLE == 1)