Question

How to validate if number is pair or odd?

  • 18 February 2019
  • 2 replies
  • 17 views

Badge +6

Hi,

 

I need to validade if the sum of the numbers is pair or odd.

 

How to make this?


2 replies

Badge +2

You can use a Tester with this test:

@Value(_your_number)%2 = 0:

Passed: even numbers

Failed: odd numbers

use this syntax with version 2021.1 : @fmod(@Value(_your_number),2)

Reply