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

Calculation results in repetitions

Featured Replies

Is it possible to have a calculation return its results into different repetitions.

For example: Having a calculation field with two repetitions, then have it return the "true" result of an "IF" statement in repetition [1] and "false" result in repetition [2]

Thanks in advance, as I can't find any references to this.

Mark

Ok

So, for example, we have a number field (field1) and we wish that a repeating field (Rep) shows "true" into the first repeatition if field1 > 5 and "false" into second repeatition in all other cases.

Given this is about what you wish, we need a new field (field2) with this calc:

Case(

field1 > 5;"true¶";

"¶false"

)

the calc for Rep will be:

GetValue ( Extend ( field2 ) ; Get ( CalculationRepetitionNumber ) )

The question is very confusing. One IF statement can have only one result: either TRUE or FALSE - no matter how many repetitions.

It IS possible to have different calculations going on in each repetition, e.g.:

Choose (

Get(CalculationRepetitionNumber) - 1 ;

2 + 3 ;

2 * 3

)

returns {5 ; 6}.

  • Author

Thanks comment,

That's exactly what I was trying to achieve.

& thanks raybaudi, but I didn't want to have to create anymore fields.

Mark.

Hi MRH

the comment's calc always evaluates all the field repeatitions in a way that the final result isn't much like to have only a repeatition full loaded. (as I understood that you wished)

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.