   
Stefan Fleischmann (Admin)
| | Posted on Thursday, Aug 29, 2002 - 0:24: | |
First of all, an EndIf statement is missing, and I don't know what "x" is. The main difficulty, however, seems to be that "IfEqual" to compare so strictly, and at the binary level: "variable" consists of 16 bits. "count" initially consists of 8 bits (smallest integer type that can represent the number 1). If a 16-bit variable is compared to a 8-bit variable at the binary level, the result is always false (cf. documentation). Only if "variable" represents an integer number that is larger than 255, the comparison can return {true} when "count" has been extended to 16 bits to overcome the 8-bit integer barrier. Possible solution: insert the following two statements before "assign count 1" in order to make "count" initially a 16-bit variable, too: Move -2 Read count 2 |