title: How to use choice parameter integer value as array in Jenkins Declarative pipeline file
body: <p>I have a Jenkins choice parameter which is integer value. I need to loop through the parameter value in my Jenkins File to run a function [i] times.</p>
  <p><strong>Say for Ex</strong>: Choice Parameter has ['1','2','3','4'] in drop down. If I chooses 4, the loop should go through 4 times.</p>
  <p>But my below code only displays I choose in the parameter which is '4' while echoing it. Could someone help me in loop through.</p>
  <pre><code>script {
                def loop_value = &quot;${params.choiceparameter}&quot;
                loop_value.each() {
                echo it
         }
  }
  </code></pre>