Sharing — Be warned:
If you want to use an XML Script (S) in the AAO addon for StreamDeck, ie to make a Visibility logic, then you have to make sure your variables in the XML are in Upper Case.
ie Visibility script
(A:AP_ON, bool) 0 == … will work and return 0 or 1
(a:AP_ON, bool) 0 == … will always return the same
(A:aP_ON, bool) 0 == … will always return the same
A little unexpected (after 3+ hours going round and round in circles)… but that “seems” to be the way it is