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.

String operations

Featured Replies

Example of slen: (Not mentioned in the panel SDK)(@c:WaypointAirportRunwayDesignation) slen (>L:length,number) Works! It will return 7 for '01L-19R'Now I want to search for the symbols 'L', 'R' and/or 'C' To find character in a string the syntax is said to be schr, so I tried: ( runway 0 selected! in EHAM 01L-19R ) (@c:WaypointAirportRunwayDesignation,string) 'L' schr if{ 1 (>L:RwayTag,enum) } . (@c:WaypointAirportRunwayDesignation,string) 'R' schr if{ 2 (>L:RwayTag,enum) } . (@c:WaypointAirportRunwayDesignation,string) 'C' schr if{ 3 (>L:RwayTag,enum) } (L:RwayTag,enum) always becomes 3 even if there is no C in 01L-19R I also tried it with ! which works perfectly for (@c:NearestAirportCurrentIdent,string)'EH' sstr ! if{ 3000 } (@c:WaypointAirportRunwayDesignation,string) 'L' schr ! if{ 1 (>L:RwayTag,enum) } . (@c:WaypointAirportRunwayDesignation,string) 'R' schr ! if{ 2 (>L:RwayTag,enum) } . (@c:WaypointAirportRunwayDesignation,string) 'C' schr ! if{ 3 (>L:RwayTag,enum) } Here (L:RwayTag,enum) always stays 0 which would imply that none of the conditions is true Have the following schr, symb or ssub ever been tried succesfully?If so, I would be pleased to know how!Roelof

Since there were no answers I did some digging.This is how it works:(@c:WaypointAirportRunwayDesignation) 'R' ord schr (>L:Found,number)Given the designation being '01L-19R'When not found it returns -1, when found it returns the position in the string starting with zero! 'L' wil return 2 and 'R' will return 6. How's that for an elegant solution.Roelof

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.