How to check if a number is even or odd?
Question

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

mvp_badge
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


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