Skip to main content
edited tags
Link
Michael E2
  • 244.8k
  • 18
  • 351
  • 774
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Source Link
Lost
  • 226
  • 1
  • 7

Query in For loop

(I did not know how to write this properly. Excuse me for that.)

For[x = 0.1, x < 3.5, x = x + 0.1,
 
 For[i = 1, i < 4, i++,

  If[y1[[i]] != 0, 
   s1 = k^2 + (d - ((g1^2)*y1[[i]]/wm))^2 + 2*k*gm + wm^2; 
   s2 = (k^2 + (d - ((g1^2)*y1[[i]]/wm))^2)*gm + 2*k*wm^2; 
   s3 = (k^2 + (d - ((g1^2)*y1[[i]]/wm))^2)*(wm^2) - (d - (g1^2*
          y1[[i]]/wm))*wm*(g1^2)*(2*y1[[i]]), Continue[]];

Here in place of Continue I want to go back to my inner loop ,i.e , if this If is not satisfied I want the inner for loop to run again. Thank you for the help.