Install software if hostname is greater then

Install software if hostname is greater then

Hello,

Is it possible for a configuration to look at the hostname?
Within our organization we use hostnames such as: LPT-800.

What I would like, all hostnames higher than 800, Office 2019 is automatically installed here. And when hostname is less than 800, Office 2016 will be automatically installed on it.

Can something like this be achieved?
                New to ADManager Plus?

                  New to ADSelfService Plus?