Hi Everyone!
Again running into a wall.
I am not finding any built in functions for Odd/Even detection.
At the moment trying to find out how to do this with what is available.
First was going to do a modulo and compare the remainder...but I don't know if exists.
Anyone know a way to find Odd/Even?
-s
Scripting - Finding Odd/Even
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
something like that?
Code: Select all
function isOdd(x:integer):boolean;
begin
if x mod 2 = 0
then result := true // odd
else result := false; // even
end;Olivier Sens
www.brainmodular.com
www.brainmodular.com
