Hallo MelMan,

versuche es einmal mit

X = Y MOD 2

wenn x = 0 ist dann gerade
wenn x = 1 dann ungerade

Gruß
Günter