Try this (didn't compile it but i think it should work that way). And by the way, try to read the errors most time they will tell you whats wrong

"if (x / 5) {" -> x / 5 is no boolean expression,...