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.

Manipulating values inside a List?

Featured Replies

hi!

 

I couldn't find a better area for this topic.

But I have a variable $RowList which is defined to contain numerical values in List(FieldA; FieldB; FieldC; FieldD,..., FieldK). That is inside a Loop ($i as a counter). I would like to do some testing for each of them in turn (like: If (GetValue($RowList; $i) > x) then set $RowList value $i to something else). And then return the modified whole list back to a variable.

 

Is that possible?

To replace a value at index position in listOfValues, you can use:

LeftValues ( listOfValues ; index - 1 )
&
replacementValue & ¶
&
RightValues (  listOfValues ; ValueCount ( listOfValues ) - index )

Note that the result will have a trailing ¶.

 

49 minutes ago, bcooney said:

A good custom function to add to your file. 
https://www.briandunning.com/cf/2169

That function performs a task that is fundamentally different from the one required here (at least the way I understood it). 

  • Author

Thank you comment and bcooney! The way, comment showed, is what I need. But this custom function is also very useful for me.👍

Note also that if you're looping over a list of values, you can add each processed value to a new list in another variable, say:

Set Variable [ $result ; List ( $result;  If ( GetValue ( $RowList ; $i ) > $x ; "a" ; "b" ) ) ]

 

Edited by comment

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.