if i have "%turn1%=1", what is wrong?

:1pcom1

set com1=%random%

if %com1%>9 goto 1pcom1

if %com1%==%turn1% goto 1pcom1

goto 1pt2

Of course, i have "1pt2"...

asked 21 May '12, 12:38

nadi106's gravatar image

nadi106
-1112
accept rate: 0%

closed 21 May '12, 14:17

Richard's gravatar image

Richard ♦
27.6k40245368

The question has been closed for the following reason "Not an OpenStreetMap question" by Richard 21 May '12, 14:17


%random% returns a number from 1 to 32768, so it might have to run for a long time before it becomes between 2 and 9 - are you sure that is what you want?

If you try to explain what you want to happen it will be a lot easier to give you a good answer.

This might also not be the best place to ask, since it is not really OpenStreetMap related.

permanent link

answered 21 May '12, 12:55

Dymo12's gravatar image

Dymo12
78111016
accept rate: 12%

edited 21 May '12, 13:38

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×10
×3

question asked: 21 May '12, 12:38

question was seen: 1,680 times

last updated: 21 May '12, 14:17

powered by OSQA