Tab is not the issue here. By my powers of deduction, I can see that you are running this code in Python version previous to 2.5, because the construct "true_clause if condition else false_clause" did not exist until 2.5. It's a neat little construct, I highly recommend you upgrade now :) -Basilisk96