Can you post the contents of the console window that shows what you are talking about?

On windows: To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'

You are using the assignment operator (=) instead of the comparsion operator (==).
The value returned by an assignment is what is to the left of the =.
An if statement requires a boolean value, not an int