Q:

how to quickly convert any number to true or false

The shortest way to convert any number to true or false depending on 0 and all -1 = false and 1 to rest = true.
How can i do this in javascript. I have tried using if statements, but that looks like long way to do things. How can i quickly log value to true or false for numbers. 

A:

You want to "convert" a number to true/false, where if it's greater than 0 it's true, if it's less than 0 it's false? That's not "conversion". You want a simple boolean test with >.
(number > 0)

