What is the syntax of for loop in Cucumber BDD

Hello,
What is the syntax of for loop in Cucumber BDD, actually i tried with the below, but it throws error -

for(int i=1; i<=findTestData(‘Data FilesTest_Data’).getRowNumbers(); i++)
{
When
And
Then
}

Regards,
Rajesh