if n == 15 and x is the int. i can say if ((int)x == 15) Or to check if x == 'A' i can cast x to (char)x. what's the syntax to chec if x is , say, 32/ -- Gary Kline kline at thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org