@french_aceNov 30.2007 — #[/QUOTE] The ? operator is called a ternary operator. Think of it, used with the :, as shorthand for if then else. Read it like if x >= .5, then use 1, else use 0. The expression you have doesn't work by itself. You'd use it like var x = .6; var y =(x >= .5?1:0);alert(y);