So i was Buliding a computer with a bunch of A?B:C but After a bunch of those if i try to add more the buttons Just wont work on the last added Statement, all the Statements i made should work and controlled atleast 10 times. Seems like After a certain amount it stops working even if i create new variables.
Update! So i by passed the "MSC=0&MSCB8=1?1:0"
With
ButtonX A MSC=30?X2:X0
VariableX ButtonX=2?1:0
I was using Toggle buttons until now wich acted like "Once" buttons but didnt work correctly with the code above.
This is genuinely perplexing idk… you might want to ask a dev or post this as a bug @tiltglory
https://www.simpleplanes.com/a/Skf25O/Solyom-3-v73
@PlaneWelder @PlaneFlightX sure, i use parentheses
Here Is the code
MSC=0&MSCB8=1?(MSC-MSC)+80:(MSC=20&MSCB6=1?(MSC-MSC)+24:(MSC=0&MSCB6=1?(MSC-MSC+60):(MSC=0&MSCB5=1?(MSC-MSC+50):(MSC=0&MSCB7=1?(MSC-MSC+70):(MSC=0&MSCB4=1?(MSC-MSC+40):(((MSC=21|MSC=22|MSC=23|MSC=24)&BCK=1)?(MSC-MSC+20):(MSC=20&MSCB5=1?(MSC-MSC+23):(MSC=20&MSCB4=1?(MSC-MSC+22):(MSC=0&MSCB2=1?(MSC-MSC+20):(MSC=0&MSCB1=1?(MSC-MSC+10):(MENU=1?MSC-MSC:(clamp(MSC,0,100)))))))))))))
For buttons i use MSC=24&MSCB1=1?1:0 but these buttons stopped working for new variables. IF i try to link the button to older variables It works but not with new ones
@PlaneWelder @tiltglory wait... you guys don't use parentheses??
(I have 40+ deep if statements, and every single one uses parentheses, resulting in quite the closing stack at the end.)
I think you can kinda get around this with using parentheses… I have a line of code that has more than 10+ if statements and when I encounter issues with it I just nest more parentheses and it seems to work… I’m not sure if this will help you but you could give it a shot.