Jump to content
Sign in to follow this  
pve

Multiple LSK commands with XML

Recommended Posts

Hi all Have problems with following code. It seems I can't get all the lines to work. If you move a line to the bottom line it works but will block another line somewhere above from working. Is there a correct order to stack these or is the code locking up somehow. (L:FMC_Page,enum) 0 == (L:FMC_PLN_Sub,enum) 0 == & if{ 2 s0 1 s1 } (L:FMC_Page,enum) 1 == (L:FMC_PLN_Sub,enum) 0 == & if{ 0 s0 0 s1 }(L:FMC_Page,enum) 1 == (L:FMC_PLN_Sub,enum) 1 == & if{ 0 s0 0 s1 } (L:FMC_Page,enum) 2 == (L:FMC_PLN_Sub,enum) 0 == & if{ 2 s0 1 s1 } (L:FMC_Page,enum) 2 == (L:FMC_PLN_Sub,enum) 1 == & if{ 2 s0 1 s1 }(L:FMC_Page,enum) 2 == (L:FMC_PLN_Sub,enum) 2 == & if{ 2 s0 1 s1 }(L:FMC_Page,enum) 2 == (L:FMC_PLN_Sub,enum) 3 == & if{ 2 s0 3 s1 }(L:FMC_Page,enum) 3 == (L:FMC_PLN_Sub,enum) 0 == & if{ 3 s0 0 s1 }(L:FMC_Page,enum) 3 == (L:FMC_PLN_Sub,enum) 1 == & if{ 3 s0 1 s1 }(L:FMC_Page,enum) 4 == (L:FMC_PLN_Sub,enum) 1 == & if{ 4 s0 1 s1 }(L:FMC_Page,enum) 4 == (L:FMC_PLN_Sub,enum) 2 == & if{ 4 s0 2 s1 }(L:FMC_Page,enum) 4 == (L:FMC_PLN_Sub,enum) 3 == & if{ 4 s0 3 s1 }(L:FMC_Page,enum) 5 == (L:FMC_PLN_Sub,enum) 1 == & (L:PageStart,enum) 1 == & if{ 0 s0 0 s1 }(L:FMC_Page,enum) 5 == (L:FMC_PLN_Sub,enum) 1 == & ageStart,enum) 1 != & if{ 5 s0 1 s1 } (L:FMC_Page,enum) 6 == (L:FMC_PLN_Sub,enum) 0 == & if{ 6 s0 0 s1 }(L:FMC_Page,enum) 7 == (L:FMC_PLN_Sub,enum) 0 == & if{ 7 s0 0 s1 }(L:FMC_Page,enum) 8 == (L:FMC_PLN_Sub,enum) 0 == & if{ 8 s0 0 s1 }(L:FMC_Page,enum) 9 == (L:FMC_PLN_Sub,enum) 1 == & if{ 9 s0 1 s1 }(L:FMC_Page,enum) 9 == (L:FMC_PLN_Sub,enum) 2 == & if{ 9 s0 2 s1 } l0 (>L:FMC_Page,enum) l1 (>L:FMC_PLN_Sub,enum) Maybe breaking it down and using Visible in the area code would be better.


Paul EGLD

Share this post


Link to post
Share on other sites

Hi Roman Thanks, I didn't know that I will go for the split. Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Hi Paul,Is this a typo product of pasting the text to the message?(L:FMC_Page,enum) 5 == (L:FMC_PLN_Sub,enum) 1 == & ageStart,enum) 1 != & if{ 5 s0 1 s1 } Otherwise, could be the cause of the erratic wrong behavior.And also this lines returns the same current values to both variables:(L:FMC_Page,enum) 4 == (L:FMC_PLN_Sub,enum) 3 == & if{ 4 s0 3 s1 }So in fact produces no visible changes. Is this ok?Tom

Share this post


Link to post
Share on other sites

Hello Tom Page 4 3 does not use this button if you don't point it back @ page 4 3 it defaults to 0 0 and opens page 0 0 same with the other but with extra condition. It will simplify things to change page 0 0 to stop these extra entries but there is still a problem with reading lines in the stack. Is the stack read from bottom to top if you lower the line it reads it. Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Paul,Ok I see it now. But then you can shorten the expession using something like this:(L:FMC_Page,enum) s0 sp2(L:FMC_PLN_Sub,enum) s1 sp3l2 0 == l3 0 == & if{ 2 s0 1 s1 } l2 1 == 0 1 l3 rng & if{ 0 s0 0 s1 } l2 2 == 0 2 l3 rng & if{ 2 s0 1 s1 } l2 5 == l3 1 == & if{ (L:PageStart,enum) 1 != d 5 * sp0 s1 }l0 (>L:FMC_Page,enum) l1 (>L:FMC_PLN_Sub,enum)That's something at least :-)Tom

Share this post


Link to post
Share on other sites

Tom That works OK, reducing the size gets them all in with some spcae to spare. Thanks Paul


Paul EGLD

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...