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.

A little help with a script.

Featured Replies

Hi,

I am trying to get my head around some scripting in Axis & Ohs and wondered if anyone could please help. This reverse scripting is very new to me.

I am trying to carry out an OR operation between:

(A:CIRCUIT·SWITCH·ON:20,·bool) and (A:CIRCUIT·SWITCH·ON:17,·bool)

I want to use the result to determine whether or not to turn on an LED via midi (this part I can do).

It is the syntax of the OR operation that I am struggling with.

My initial thoughts were:

(A:CIRCUIT·SWITCH·ON:20,·bool) (A:CIRCUIT·SWITCH·ON:17,·bool) OR (>L:Result)

I am assuming the result to be 1 unless they are both 0.

Thanks,

Daz

Edited by Dazzlercee23

  • Commercial Member
Quote

(A:CIRCUIT·SWITCH·ON:20,·Bool)·(A:CIRCUIT·SWITCH·ON:17,·Bool)·or·if{·...whatever....·}

RPN is stack based logic. The operator comes after the operands have been pushed on the stack

Check this out:

Reverse Polish Notation (flightsimulator.com)
 

And of course the AxisAndOhs manual, because the AAO uses an expanded instruction set for RPN, beyond what the simulator can do.

Edited by Lorby_SI

LORBY-SI

  • Author

Thanks for info and link.

Regards, Daz

Archived

This topic is now archived and is closed to further replies.

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.