I need to run set of code inside for-loop
only if certain condition is satisfied like:
@for($i = 0; $i <= $date_diffrence; $i++)
@if(condition)
$temp = $i;
@for($multDayCount=0; $multDayCount<count($dayDifferenceArr); $multDayCount++)
$i = $dayDifferenceArr[$multDayCount];
@endif
....
@if(condition)
@endfor
$i = $temp;
@endif
@endfor
How can I loop like this? Any help would be greatly appreciated.
Aucun commentaire:
Enregistrer un commentaire