127
Views
9
Comments
Solved
Check if a number is even or odd

Hi,  If I enter even number into input box it has to show message the entered number is even  and if I enter odd number into input box it has to Show message the entered number is odd number How to find in outsystems.  

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi Praveen,
Use Mod() as shown

Regards
Krishnanand Pathak

UserImage.jpg
Praveen Tumati

Thx Krishnanand Pathak . quick react 

2023-04-16 15-25-31
Krishnanand Pathak

Sharing the oml also.
If you like the solution then mark it as solution.

EvenOdd.oml
UserImage.jpg
Praveen Tumati
2023-07-31 05-30-45
Siddharth Mukherji

You can execute a client action on button click, and in that implement the logic to check even odd. Try yourself, you will be able to do it.

UserImage.jpg
Praveen Tumati

Thx @ Siddharth Mukherji . quick react 

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi Praveen,
Use Mod() as shown

Regards
Krishnanand Pathak

UserImage.jpg
Praveen Tumati

Thx Krishnanand Pathak . quick react 

2023-04-16 15-25-31
Krishnanand Pathak

Sharing the oml also.
If you like the solution then mark it as solution.

EvenOdd.oml
UserImage.jpg
Praveen Tumati
2023-03-16 04-58-56
Ashish Lonkar

Hi Praveen,

you can checkout this post, It is already solved.

https://www.outsystems.com/forums/discussion/76990/how-to-check-if-a-number-is-even-or-odd/


Thanks AWL!

UserImage.jpg
Praveen Tumati

Thx for all support I got output 

2023-04-16 15-25-31
Krishnanand Pathak

Hi @Praveen Tumati,
You should mark the solution which is best answer for your question not your own comment.

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