Hello, You can use "continue", which will skip to the next iteration of loop. http://www.php.net/manual/en/control-structures.continue.php Regards, Filipe Carvalo Francisco - São Paulo - Brazil wrote: > Suppose I have this: > > for($i = 0; $i < count($data); $i++){ > $blocked = isBlockedForMe($my_id, $account_id); // true or false > > } > > I want when the $blocked is true to SKIP to the next step, I dont want > to BREAK, I want something like this: > > for($i = 0; $i < count($data); $i++){ > $blocked = isBlockedForMe($my_id, $account_id); // true or false > if($blocked){ > ..............SOMETHING HERE TO SKIP but continue in the loop > } > > // I dont want to show/execute what is below > ............. > ............ > } > > Thanks > F > > > > PHP Data object relational mapping generator > http://www.metastorage.net/ > Yahoo! Groups Links > > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/