633
Views
2
Comments
Solved
 How to check if a number is even or odd?
Question

Hello guys, how I check if a number is even or odd? 

2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

Hello Francisco.

Mod(number,2) will return 0 for pair number and 1 for odd number.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Math#Mod


2022-09-10 22-09-09
Francisco Brito

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.