> > read sample > if sample > myvalue > myvalue = myvalue+1 > else > myvalue = myvalue-1 > close, but if sample = myvalue skip the if statement. michael