Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

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.

Exit Script[] and RPN

Featured Replies

I've stumbled over this statement of Steven Blackwells:

No. It may seem that way, but it wasn't. Prior to FMP 7 and the end of

RPN, ALL tests and all results were evaluated. Then the result

matching the first true test was returned. Some lads got a surprise

when certain script triggers tied to Case statements started

evaluating.

From: http://www.nabble.com/Case-vs.-If-t1350857.html#a3623229

This made me think, one thing is the metaphors or abstractions we deal with when developing, another is what's going on under the hood - which might be very different either we're talking calcfield or we're talking scripting.

But what if they're more indentical than we dare to think??? Blackwell states that the days of RPN are over, which should mean that calcfields consider each statement as they comes, in reading direction.

We have on the scripting side been provided with a new "Else If" that makes a kind of Case('ish behaviour, but how is it done if not via some sort of RPN??? All would say in laymans terms, it will look for the "End If" as soon as a condition is met.

Well it's pretty easy to investigate this by making conditions, that counts over various relationships. Is there someone here who have made such a benchmark??

Next question is; Does the inclution of a Exit Script[] Change this behaviour if it's stuffed in each branch of a nested If-Else_If-End_If statement??

Now are we almost there what is the purpose of Exit Script[] these days? I can see that in the separation model can it serve as pathway for the values in global variables between the files ...but I think the previous task they were utilized for was a mean to avoid pushing too much on the stack, but by fm7 where recursions suddently endorsed again ...while having been discouraged for nearly 10 years - by the introduction of the Loop-Exit_Loop-End_Loop tool.

Can you show me how to use Exit Script[] to avoid having a whole herd of scriptparameters when making recursions???

--sd

  • Author

Remember HP pocketcalculators in the old days... "Cool gadget but where's the paranthesis button"

http://en.wikipedia.org/wiki/Reverse_Polish_Notation

--sd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.