March 8, 20251 yr Hey there, I am still working on my own stream deck profile for the fenix A320 series. So its seams that in the stream deck plugin I cannot seem to "OR" three values. My "code" as of right now: (L:I_MIP_AUTOBRAKE_MAX_L, number) 1 == (L:I_MIP_AUTOBRAKE_MED_L, number) 1 == (L:I_MIP_AUTOBRAKE_LO_L, number) 1 == || As it stands it returns true if either "..._MAX_..." or "..._LO_..." are 1. Shouldn't that in theory return true if either of those three values are 1? Any help would be much appreciated, Thank you, Danno Edited March 8, 20251 yr by danno1502
March 8, 20251 yr Commercial Member Just like in normal infix code, the OR is a binary operator, it processes two operands only. You need another OR in your code. OR the first two variables, then OR the result with the third. Edit, btw, when those variables have only 0/1 as values, you can remove the 1 == parts. (the result of which would also be 0/1) (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) || (L:I_MIP_AUTOBRAKE_LO_L, number) || Edited March 9, 20251 yr by Lorby_SI LORBY-SI
March 8, 20251 yr Commercial Member Or use maths. Add up all three variables, and if the result is not 0 the at least one of them was set. (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) + (L:I_MIP_AUTOBRAKE_LO_L, number) + 0 != Edited March 9, 20251 yr by Lorby_SI LORBY-SI
March 9, 20251 yr Author 12 hours ago, Lorby_SI said: Just like in normal infix code, the OR is a binary operator, it processes two operands only. You need another OR in your code. OR the first two variables, then OR the result with the third. Edit, btw, when those variables have only 0/1 as values, you can remove the 1 == parts. (the result of which would also be 0/1) (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) ||(L:I_MIP_AUTOBRAKE_LO_L, number) || Oh, I tried this, but didnt get it to work. I believe because I left a space behind the first ||...
March 9, 20251 yr Author 11 hours ago, Lorby_SI said: Or use maths. Add up all three variables, and if the result is not 0 the at least one of them was set. (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) +(L:I_MIP_AUTOBRAKE_LO_L, number) + 0 != Oh dear, this is so simple.. I was so in tunnel vision in regards to the OR operator... Thank you so much for your swift reply!
March 9, 20251 yr Author I am afraid I have to get back to this as I cant seem to get it to work, even with your code. With your code for MED and LO it works; for MAX not.
March 9, 20251 yr Commercial Member All the scripts had typos in them. There must be a space between everything, in this case between || or + and the following bracket. I've corrected and tested them both (for a change) (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) || (L:I_MIP_AUTOBRAKE_LO_L, number) || (L:I_MIP_AUTOBRAKE_MAX_L, number) (L:I_MIP_AUTOBRAKE_MED_L, number) + (L:I_MIP_AUTOBRAKE_LO_L, number) + 0 != Edited March 9, 20251 yr by Lorby_SI LORBY-SI
Create an account or sign in to comment