title: How to loop parameter value in Jenkins Declarative pipeline
body: <p>I have a Jenkins pipeline where I need to get the parameter value as Integer and do for loop.</p>
  <p>Say for example: If the value of the parameter is : 3, I want loop the code 3 times. Below is what I tried but could not find the exact solution</p>
  <pre><code>pipeline {
      agent any
      stages {
          stage ('loop'){
              steps {
                  echo &quot;Looping&quot;
              script {
              for (int i=0; i&lt;=params.count;i++) {
                  echo &quot;$i&quot;
              }
              }
              }
  
          }
      }
  }
  </code></pre>