qc.Math.isEven

Prototype

  • boolean isEven(value)

Paramters

Paramter Type Description
value number The number to check.
return boolean True if the given number is even. False if the given number is odd.

Description

Returns true if the number given is even.

Example

    // return true
    var ret = game.math.isEven(4);