I have a php statement that I want convert to XOJO
// $score is a String typecasted to Int
// $before is an array of strings
if (isset($before[$i])) {
$score = (int)$before[$i];
if ($score & 1) { // only odd
//$part .= $score; // debugging
$parts[] = $part;
$part = '';
}
}
It looks like Bitwise And, but Xojo returns UInt64 and not boolean. So I guess I can’t use it like here.
Does anybody have any ideas?
Thank you
Thank you all. This seems to work.
I’m still trying to find a solution for “isset($array[key])”
The only thing I can think of is a method IsSet(Array, Key)
That tries to read Array(Key) that catches Outoffbound exceptions and returns true or false and resets #Pragma to default
Or does anyone have a better idea.
Thank you