Go to content Go to navigation

IF(dvDEV.PORT)

30 July 2009, 08:22 by Chad Reynoldson

I’m running into more and more IP controlled devices in the AMX world of control. I have gotten into a habit of checking if a DEV variable has a value with IF(dvDEV) and it has worked all these years for the various devices (232, IR, relay).

With IP devices, this always evaluates to false. It seems to me that IF(dvDEV) is actually evaluating as IF(dvDEV.NUMBER) and with the case of IP devices is 0 (false).

I am now changing to IF(dvDEV.PORT) so that all conditions will play nicely for IP, 232, IR, and relay devices.

Share This Article

Comments

No Current Comments

Write a comment.

Please note…

  1. Please keep comments to a thoughtful discussion on the topic.
  2. If you just want to say hello, use the contact form instead.
  3. Textile is limited to *strong*, _italics_ and "link":url .
  4. I reserve the right to edit/remove any comments.