if machine name contains "MacBookPro" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 6 then true else false
)
else if machine name contains "iMac" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 10 then true else false
)
else if machine name contains "MacBookAir" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 3 then true else false
)
else if machine name contains "MacBook" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 6 then true else false
)
else if machine name contains "Macmini" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 4 then true else false
)
else if machine name contains "MacPro" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 5 then true else false
)
else if machine name contains "VMware" then
(
if first match
(
regex "([0-9])+"
)
of machine name as integer >= 7 then true else false
)
else false
if machine name contains "MacBookPro" then (if first match (regex "([0-9])+") of machine name as integer >= 6 then true else false) else if machine name contains "iMac" then (if first match (regex "([0-9])+") of machine name as integer >= 10 then true else false) else if machine name contains "MacBookAir" then (if first match (regex "([0-9])+") of machine name as integer >= 3 then true else false) else if machine name contains "MacBook" then (if first match (regex "([0-9])+") of machine name as integer >= 6 then true else false) else if machine name contains "Macmini" then (if first match (regex "([0-9])+") of machine name as integer >= 4 then true else false) else if machine name contains "MacPro" then (if first match (regex "([0-9])+") of machine name as integer >= 5 then true else false) else if machine name contains "VMware" then (if first match (regex "([0-9])+") of machine name as integer >= 7 then true else false) else false