Loops in Deluge

Loops in Deluge


Can someone tell me how I do a simple loop in deluge?

For example, if i have a variable "X" containing a number of loops to perform, i would like to perform an action X amount of times.

X = 10;
do while (Y < X){
      // ... do something

to further explain, the equivalent in PHP of what i am trying to acheive would be:

$X = 20;
for($Y = 1; $Y < $X; $Y++ ){
      // ... do something


            Zoho DataPrep Resources

                Zoho CRM Plus Resources

                  Zoho Books Resources

                    Zoho Subscriptions Resources

                      Zoho Desk Resources

                        Zoho Projects Resources

                          Zoho Sprints Resources

                            Zoho Orchestly Resources

                              Zoho Creator Resources

                                Zoho WorkDrive Resources

                                    Zoho Campaigns Resources

                                      Zoho CRM Resources

                                                  Design. Discuss. Deliver.

                                                  Create visually engaging stories with Zoho Show.

                                                  Get Started Now

                                                      Zoho Writer Writer

                                                      Get Started. Write Away!

                                                      Writer is a powerful online word processor, designed for collaborative work.