Return true or false based on a raw WMI query. This example checks whether one of two VPN virtual network adapters is connected.
if (exists (string values of selects (/* WMI query in quotes here */"* From Win32_NetworkAdapterConfiguration Where IPEnabled = True And (Description = 'Cisco Systems VPN Adapter' or Description = 'Citrix Virtual Adapter')") of WMI)) then true else false