Jump 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.

Inserting "Get Script Parameter" into an if statement"

Featured Replies

Is is possible to insert a "get scriptparameter" function in the following If statement, to replace the two instances of "standard 1":

If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p]

You need to provide more info, this is a bit vague. Post a file or provide more detail.

It's possible using the Evaluate() function:

If [ Evaluate ( Get ( ScriptParameter ) & "::highlight_a_tempkey" ) = Evaluate ( Get ( ScriptParameter ) & "::zk_standard_p" ) ]

  • Author

Thanks comment, I appreciate your help.

This works on my if statement but I cant get it to work on a clear statement. In light of what StuartT suggested, here is more information. This is my current script which works perfectly to toggle a colour on and off. I need to this for 6 table occurances - standard 1:: through standard 6, and for 5 "highlight tempkeys", highlight_a_tempkey, highlight_b_tempkey, c, d, and e.

Can I get this down to six scripts or even one script.

If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p]

Clear [select; standard 1::highlight_a_tempkey]

Go to Field [ ]

Exit Script [ ]

End if

Set Field [standard 1:: highlight_a_tempkey; standard 1::zk_standard_p]

Go to Field [ ]

Thanks again

There's no way to specify the target field in commands such as Set Field[], Clear[], Go to Field[], etc. by calculation. Some workarounds have been suggested, none of them very elegant, IMHO.

 

  • Author

Thanks Comment, I appreciate your help

Create an account or sign in to comment

Important Information

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

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.