If you are using a two-way processor with a driver for the device you are toggling, this is done easily with a system variable check.
Odd that the device you are controlling doesn't have a source command that toggles. Oz AVI mentioned flags which is another good idea, another option is to use the toggle sources driver available here:
[Link: forums.rticorp.com]Vincent