Uninstall MS Office 2007,2010 32 & 64 bit and install Ms Office 2013 32 or 64Bit

Hi All,

So what I’m trying to do is to uninstall Any version of office 32 or 64bit lower than 2010 this will also impact Viso and Project

before I found this post

I created this:
(if (exist file "C:\Program Files (x86)\Microsoft Office\Office15\WINWORD.EXE") then ("Microsoft Office 2013 (32-Bit)") else(nothing) ; (if (exist file "C:\Program Files\Microsoft Office\Office15\WINWORD.EXE") then ("Microsoft Office 2013 (64-Bit)") else(nothing)) ; (if (exist file "C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE") then ("Microsoft Office 2010 (32-Bit)") else(nothing)) ;(if (exist file "C:\Program Files\Microsoft Office\Office14\WINWORD.EXE") then ("Microsoft Office 2010 (64-Bit)") else(nothing)); (if (exist file "C:\Program Files (x86)\Microsoft Office\Office12\WINWORD.EXE") then ("Microsoft Office 2007 (32-Bit)") else(nothing)))

I was hoping I can get some direction on how to
if I the system has Office 2010 32bit it will put back office 2013 32 bit.
if the system has Office 2010 64 bit and project 64bit, it will install office 2013 64bit with project 2013 64bit.

so I was thinking on doing different task. but Im unsure if I can make a condition that if this and this then call this Task.
Any help is greatly appreciated.