1. scope of labels

Is this ok?

for j = 1 to 20 label "j" do 
    if x is true then continue "j" end if 
    --other stuff 
end for 
 
--same block, but later 
for j = 1 to 20 label "j" do 
    if x is true then continue "j" end if 
    --other stuff 
end for 
 

Chris

new topic     » topic index » view message » categorize

2. Re: scope of labels

ChrisB said...

Is this ok?

for j = 1 to 20 label "j" do 
    if x is true then continue "j" end if 
    --other stuff 
end for 
 
--same block, but later 
for j = 1 to 20 label "j" do 
    if x is true then continue "j" end if 
    --other stuff 
end for 
 

Chris

Yes it is ok.

The scope of the label is the for-block, just like the scope of the 'j' variable.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu