writing Instruction File with If Statement