About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Thank you again for submitting this RFE!
This request will likely not be delivered within the release currently under development. IBM is soliciting RFE Community feedback for this request through activities such as voting. IBM will update this request in the future.
In calculations, it is sometimes necessary to repeat a certain action several times. For example, you want to calculate an average of several male reality calculator variables, while some of them are allowed to be empty. In this context, we would need to check each variable, calculate the total sum of the variables that are filled in, and divide it by the number of variables that are filled in. For this purpose, the "for loop" logic is helpful.Put in simple terms, the for loop is a reiteration across variables, options, or whatever you have a multitude of. This runs in the form of a loop - so it will go through every defined instance until the condition for ending the loop is met. That means you will have to define where the for loop starts, where it ends and how the iteration is performed (whether on all defined instances).This means that the loop starts at 0 (first instance), ends after 10 iterations and increases by 1 (so the iterations are done through all instances, without skipping). These can be defined differently, depending on what you need to do. This "i" here is useful, because it can be used further within the loop to find the number of the iteration, as in the example below.The statement in the brackets sets the conditions for the loop, but the actual calculation (what we want the program to do) will be in the code block. The actual calculation is defined as any other and can also contain if/else statements.
Excellent idea!
Thank you for submitting this RFE!
The IBM team is evaluating this RFE. A decision or request for more information will be provided within 90 days of the date that this issue was submitted.