Thank you for you previous help :) I now need ot know how i can name a specific operation inside a function. i am using the if(cond){}else{} construction and would like to name it. However if i do assign a name to it and then call it later onm in the function, it is not recognised. does any one have any idea why? Thank you, Dave