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
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
Great Senso thanks that was what i was looking to script. I didnt find mod in the documentation for operators and tried %. I will test and update documentation if not there.
"Every act of creation is first an act of destruction." -Picasso
Who is online
Users browsing this forum: Google [Bot] and 73 guests
