Jump to content

Recommended Posts

Interesting:

 

count: 10

repeat count [write/line count: 10 - count]

write/line "end"

atari000.png.c59066880c8eb527c239060f49817ecd.png

 

count: 10

repeat count [write/line count: 10 + count]

write/line "end"

atari001.png.65da45c5484760f33725d74a65a4f929.png

count: 10

repeat count [write/line count: count + 1]

write/line "end"

atari002.png.b97c91d0a3ab873e355bd0b2f42c5a90.png

 

count: 10

repeat count [write/line count: count - 1]

write/line "end"

atari003.png.301209c9d9addcec013cdd6f037b1f02.png

Link to comment
Share on other sites

Why if I subtract 10 from 10 I have alternating result and if 1000 from 1000 is still 0.

 

I don't get it, the counter VARIABLE doesn't overlap and it's still not 0 in the first case.

 

--- EDIT ---

 

I understand repeat has its internal counter, I ask about MY variable.

Edited by zbyti
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...