even?

check if given number is even


Parameters

even? number :integer

Returns

  • :logical

Examples

copy
even? 4 ; => true even? 3 ; => false

copy
print select 1..10 => even? ; 2 4 6 8 10

Related