correct way to interact and continue #477
GiorgioBurbanelli89
started this conversation in
General
Replies: 2 comments 4 replies
-
Could you please paste this code in the comments? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi! Thanks for posting.
But you are right. It also should work with |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to this image, what is the correct way to execute this operation, each element of a only adds 1 if it is not 0, when it is 0 it continues iterating without using any operation
A = [0; 0; 1]
B = vector(len(A))
#for i = 1 : len(A)
c = A.i
#loop
B
A = [0; 0; 1]
B = vector(len(A))
#for i = 1 : len(A)
c = A.i
#if c ≡ 0
#continue
#end if
B.i = A.i + 1
#loop
B
A = [0; 0; 1]
B = vector(len(A))
#for i = 1 : len(A)
c = A.i
#if c ≡ 0
#continue
B.i = A.i + 1
#end if
#loop
B
The first way is one way but I want it to be with #continue
Beta Was this translation helpful? Give feedback.
All reactions