Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions General FLUX: Inquiries
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

186-Axcess vs NetLinx on precedence of NOT

Technical Support Guide

Written by Will Fraser

Updated at February 10th, 2026

Table of Contents

Brand: Models: Overview: Example Code: Key Points: Note: Note regarding AXCESS programs:

Brand:

  • AMX

Models:

  • Axcess
  • Netlinx

Overview:

According to each of their language reference manuals AXCESS and NetLinx each give the operator NOT highest precedence while

giving AND and OR lowest.  


Example Code:

As demonstrated in the following code, however, the two systems behave differently.  In reality, AXCESS

gives the operator NOT lowest precedence.   

DEFINE_VARIABLE
C
D
E
DEFINE_CALL 'GO' (A,B)
{
C = !A && B
D = B && !A
E = !B && !A
}
DEFINE_PROGRAM
PUSH[1,1]          
CALL 'GO' (0,0)
PUSH[1,2]          
CALL 'GO' (1,0)
PUSH[1,3]
CALL 'GO' (0,1)
PUSH[1,4]          
CALL 'GO' (1,1)
AXCESS RESULTS
A B !A && B B && !A !B && !A
0 0 1 0 1
1 0 1 0 1
0 1 1 1 0
1 1 0 0 1
NETLINX RESULTS
A B !A && B B && !A !B && !A
0 0 0 0 1
1 0 0 0 0
0 1 1 1 0
1 1 0 0 0

Key Points:

Note:

The problem applies whether A and B are channels, variables, or expressions, and for OR as well as AND.  We've been aware of this problem in AXCESS for years and years.

 

 To solve the problem, we've always recommended the use of (!A) && B instead of !A && B.

However, and this is the critical point, some programs out there are taking advantage of the logic flaw.  Where the AXCESS programmer intended the truth table of !(A && B) he/she may have coded !A && B and gotten the desired result.  The problem is, if these systems are converted to NetLinx masters, the logic will not work as desired.

Please be aware of this difference as you support programs which are being converted from AXCESS to NetLinx.  When it occurs, AXCESS-like operation can generally be achieved by including all the conditions to the right of the NOT in a single set of parentheses.

e.g.

IF (SYSTEM_POWER && ![VCR,PLAY] || [VCR,RECORD])

becomes

IF (SYSTEM_POWER && !([VCR,PLAY] || [VCR,RECORD]))

I'd like to recommend adding this note to or near the "Operator Precedence" chart in the NetLinx Programming manual:

Note regarding AXCESS programs:

As noted in the chart, the NOT (!) operator has highest precedence in NetLinx systems.  In AXCESS systems, NOT (!) has lowest precedence.  AXCESS programs that are converted to NetLinx may exhibit logic problems if they use statments which combine NOT (!) and other operators.  Please contact Amx Technical Support for help resolving these issues.  ​

 

 

Related Videos

template blueprint

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Brand: Models: Overview: Example Code: Key Points: Note: Note regarding AXCESS programs:

Related Articles

  • 268 - Netlinx Event Data Objects
  • Using a NetLinx Master to Monitoring a System
  • Triggering System Calls Under Button Event In Netlinx

Related Articles

  • 268 - Netlinx Event Data Objects
  • Using a NetLinx Master to Monitoring a System
  • Triggering System Calls Under Button Event In Netlinx
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand