Action Script for classifying Servers, Workstations, etc

I am trying to create an action script to set classifications for certain subnets for devices in Bigfix. Can someone please review and let me know what I am doing wrong?

setting “Classification”="{if ((exists (subnet address whose (it=“10.100.100.0” OR it=“10.100.101.0” OR it=“10.100.104.0” OR it=“10.100.108.0” OR it=“10.100.109.0” OR it=“10.100.110.0” OR it=“10.100.111.0” OR (exists address whose (it>“10.2.64.0” and it<“10.2.79.255”) of adapters whose (status of it=1) of network)) OR (exists address whose (it>“10.30.16.0” and it<“10.30.31.255”) of adapters whose (status of it=1) of network)) OR (exists address whose (it>“10.48.96.0” and it<“10.48.127.255”) of adapters whose (status of it=1) of network)) OR (exists address whose (it>“10.48.128.0” and it<“10.48.159.255”) of adapters whose (status of it=1) of network)) OR (exists address whose (it>“10.48.160.0” and it<“10.48.167.255”) of adapters whose (status of it=1) of network)) OR (exists address whose (it>“10.48.176.0” and it<“10.48.177.255”) of adapters whose (status of it=1) of network)) then (“Laboratory”) else (“Workstations”)}" on “{now}” for client

Much appreciated.

So what’s not working right now?

For this situation, I’d recommend leveraging the Location Property Wizard in BES Support which can help create this content for you. In this case, the only difference is that the term “location” should be changed to “Classification”, and the location mapping would instead include “Server”, “Workstations”, “Laboratory”, etc…