Reverse Polish Notation: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
(Add an example section)
(Added section on relevant mission script elements)
Line 21: Line 21:
'''The [https://docs.flightsimulator.com/html/index.htm#t=Additional_Information%2FReverse_Polish_Notation.htm documentation] on RPN thoroughly explains how it works.
'''The [https://docs.flightsimulator.com/html/index.htm#t=Additional_Information%2FReverse_Polish_Notation.htm documentation] on RPN thoroughly explains how it works.
'''
'''
== Mission Script Elements that use RPN ==
{|class='wikitable'
|[[MSFS_Mission_Script_-_Calculator|Calculator]]
|-
|[[Property_Trigger|PropertyTrigger]]
|-
|[[Execute_RPN_Action|ExecuteRPNAction]]
|}


== Examples ==
== Examples ==

Revision as of 16:39, 11 December 2021

Reverse Polish Notation, or RPN, is a way to write down formulas. It is used in MSFS for gauges, model behaviors, and in mission scripts for PropertyTriggers, ProximityTriggers, and Calculators.

The documentation on RPN thoroughly explains how it works.

Mission Script Elements that use RPN

Calculator
PropertyTrigger
ExecuteRPNAction

Examples

Changing a variable

You can change a variable with RPN code in a Calculator or Execute RPN Action.

1800 (>X:VariableToChange)

This example changes the variable VariableToChange to 1800.