Skip to main content
Question

How to validate if number is pair or odd?

  • February 18, 2019
  • 2 replies
  • 143 views

mr_fme
Enthusiast
Forum|alt.badge.img+8

Hi,

 

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

 

How to make this?

2 replies

lau
Forum|alt.badge.img+3
  • February 18, 2019

You can use a Tester with this test:

@Value(_your_number)%2 = 0:

Passed: even numbers

Failed: odd numbers


  • November 12, 2021

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings