ya sorry this was not compilable code... The intermediate value is the main concern - if statement would be okay too.