Prev: WBC Cell feature extraction
Next: Wimax in Mesh Network
From: Fuad Latip on 17 May 2010 00:57 Dear All brilliant friend, I hope you all here willing to help me. My Case: i have several looping and want to skip any loop if condition meet. Loop1 Loop2 Loop3 if condition 1 skip loop 3 elseif condition 2 skip loop2 elseif condition 3 skip loop 1 end if End Loop3 End Loop2 End Loop3 anybody can help me how to skip any loop according to the condition meet. Tq so much with your super duper help.
From: Walter Roberson on 17 May 2010 01:04 Fuad Latip wrote: > My Case: > i have several looping and want to skip any loop if condition meet. > Loop1 > Loop2 > Loop3 > > if condition 1 > skip loop 3 > elseif condition 2 > skip loop2 > elseif condition 3 > skip loop 1 > end if > > End Loop3 > End Loop2 > End Loop3 > anybody can help me how to skip any loop according to the condition > meet. The only way to do that directly is to use try/catch and error() Better is the indirect: Loop1 Loop2 Loop3 if contintion1 || condition2 || condition3; break; end End %Loop3 if condition1 || condition2; break; end End %Loop2 if condition1; break; end End %Loop1
|
Pages: 1 Prev: WBC Cell feature extraction Next: Wimax in Mesh Network |