Not sure what I am doing wrong here, but here is a picture of my code.
Regarding the first error, what does the if statement do?
Here is a resource worth reading, especially the section entitled Properties in it.
As for the second error, where is the celsiusValue (after =) defined?