Hello, I wrote my own model using Aspen Custom Modeler in which I used a while loop as follows:

While (eps > 0.01) Do

statement 1

statement 2

..

Endwhile

But when I tried to compile the model, this error appeared on the messages window :

Compiling...

Information: Reading type PTSC

201: While (eps > 0.01) Do

Error at position 1: Reserved word "While" unexpected - bad syntax or (missing) punctuation

219: Endwhile

Error at position 1: Reserved word "Endwhile" unexpected - bad syntax or (missing) punctuation

Compilation completed. 2 error(s), 0 warning(s)

I'd like to know how to deal with this error? Many thanks.

More Masoud Khalili's questions See All
Similar questions and discussions