Okay with the collection of yougize's help I have in fact solved the problem. The problem wasnt that the value wasnt being assigned, it's that I was assigned the variable a null value so it just wasnt being displayed. I have now added an if conditional to detect if the treescut variable is 0 and if so perform accordingly. Thank you both for your assistance
