Template directive: do

The @do: operator directive is part of the conditional loop operator directives. It is being used to loop through a list of item. It used along with the @while(); directive.
do:
Example: do:
   @php: $i = 1; @php;
   
   @do:
    
    echo 'The current number is '.$i.' <br>';
    
    $i++;
     
   @while($i <= 3);
                
The response returned above will be
    
  The current number is 1
The current number is 2
The current number is 3
Unlike the other conditional loops, the do while(); directive must contain raw php codes in other to work successfully.