Respond 'true' if LAN and Wireless is connected

(imported topic written by tgxwtso91)

I have this code which gives me an answer of ‘Local Area Connection’ and ‘Wireless Network Connection 2’ when I work it in Relevence debugger.

names of connections whose (status of it = (connection status connected)) of network

I would like code to return a “true” value if ‘Local Area Connection’ AND any connection beginning with the word ‘Wire’ is found connected at the same time

I dont know, something like…

if (name of connection whose (status of it = (connection status connected)) of network = “Local Area Connection”) AND (name of connection whose (status of it = (connection status connected)) of network = “Wire*”) then true

Thanks!

(imported comment written by Jim23)

Try this. it should show you when you have a connection that exists and is connected that is named “Local Area Connection” as well as a connection named “wire”. Hope this helps:

(exists connection whose (status of it = (connection status connected) and name of it = “Local Area Connection”) of network ) and (exists connection whose (status of it = (connection status connected) and name of it as lowercase starts with “wire”) of network)

(imported comment written by tgxwtso91)

Great! Worked perfectly. I now link that to an action which kicks off a script that disables the wireless connection.

Thanks!