Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Array Display

Featured Replies

Hi all

 

<ScrollY>(L:Scroll,number)</ScrollY>

<String>

%((L:DirTo,bool) ! (@c:FlightPlanWaypointsNumber) s2 0 != and )

%{if}

%(0 sp1)

%{loop}

%(@Array l1 (>@c:FlightPlanWaypointIndex))

%( l1 (@c:FlightPlanWaypointIndex) == )%{if}%( l44 100 / )%!d!%{end}

%(l1 ++ s1 l2 <)

\n

%{next}

%{end}

%{end}

</String>

 

works OK but if I try

%( l1 (@c:FlightPlanWaypointIndex) 1 - == )%{if}%( l44 100 / )%!d!%{end}

 

To give one value back I get not even a list of zeros.

 

Anyone help

Paul EGLD

  • Commercial Member

<ScrollY>(L:Scroll,number)</ScrollY>
<String>
%((L:DirTo,bool) ! (@c:FlightPlanWaypointsNumber) s2 0 != and )
%{if}
%(0 sp1)
%{loop}
%(@Array l1 (>@c:FlightPlanWaypointIndex))
%( l1 (@c:FlightPlanWaypointIndex) == )%{if}%( l44 100 / )%!d!%{end}
%(l1 ++ s1 l2 <)
\n
%{next}
%{end}
%{end}
</String>
%( l1 (@c:FlightPlanWaypointIndex) 1 - == )%{if}%( l44 100 / )%!d!%{end}
Need to use the code-format... like what I just did.

 

I'd offer an answer to your question... but I don't do XML.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author

Thanks I tried that, I went back and changed the array

 

l1 1 - @1 == if{ (L:AltConst:@1,feet) sp37 }

 

Ed. how you get the code box

Paul EGLD

Ed. how you get the code box

 

 

 

When replying click on "More Reply Options" and the select the "< >" option for code. Select code type "XML" and then paste your bit of code in the big box. 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.