Log in

View Full Version : Doctrine language: While


Hawk66
05-26-08, 12:49 PM
Have anybody of you guys worked with the 'While' statement, which seems part of the Doctrine language?

I used it in a tactic doctrine that way:

While ( counter ) {
DebugOut "Test"
;do sth with the counter here...
}

but hasn't worked.

Since the whole doctrine script is embedded in a big 'for loop' there are workarounds but sometimes such a statement would be handy.
For example if you create two random numbers and both are dependent to each other.

GrayOwl
05-26-08, 03:50 PM
Have anybody of you guys worked with the 'While' statement, which seems part of the Doctrine language?

I used it in a tactic doctrine that way:

While ( counter ) {
DebugOut "Test"
;do sth with the counter here...
}

but hasn't worked.

Since the whole doctrine script is embedded in a big 'for loop' there are workarounds but sometimes such a statement would be handy.
For example if you create two random numbers and both are dependent to each other.

Check the doctrine on correctness of syntax of the doctrine.
It can spoil the doctrine.
/.
Read Lerning About Doctrine Scripts :dead: :dead: :dead: Maybe its Help For You.