Using for Loops in X++: Syntax and Examples

Rumman Ansari   Software Engineer   2024-10-19 01:01:18   6853  Share
Subject Syllabus DetailsSubject Details Login to Open Video
☰ TContent
☰Fullscreen

Table of Content:


Syntax


 
 for (i = initialValue; i < endValue ; i++) {
     // Loop body;
    Statement(s);
}



Flowchart

For Loop Flowchart
Figure: For Loop Flowchart


Example



// for loop example

static void Examples(Args _args)
{ 
    int i;

    for (i = 0; i < 10; i++) {
      info("Welcome to atnyla! ");
    }
}



MCQ Available

There are 3 MCQs available for this topic.

3 MCQ