in reply to Re: true/false condition - what am I doing wrong?
in thread true/false condition - what am I doing wrong?

Exactly! Taulmarill has pointed it out right. You are using a compound if statement without the appropriate syntax. Also, I notice in your code that you've declared the variables $type and $redo twice within the same lexical scope! You might like to change this.