Bad integer format

Hello

I encounter a problem when writing all the nodes belong to a condition

the code in bas file:

*set cond Surface_Group_Membership *nodes *canRepeat
*loop nodes *OnlyInCond
    node_groups['*cond(Group_Name)'].append( *NodesNum )
*end nodes

Executing this gives an error: Error in basefile … at line number 154: Bad Integer format

However, if the bas file is modified a bit, this error goes away

*set cond Surface_Group_Membership *nodes *canRepeat
*loop nodes *OnlyInCond
    *cond(Group_Name) is touched
    node_groups['*cond(Group_Name)'].append( *NodesNum )
*end nodes

Of course, this is not what I want
Is it a bug, or something wrong anyway?

I have tried it with Gid 12.1.10d Windows x32 and in my test worked well.

I have used this problemtype:
kstn.zip (1.35 KB)
and this small example:
test_kstn.zip (4.25 KB)
and the result was ok: (the file test_kstn.dat of the example)

If your problem persist with an updated version of GiD attach your problemtype and model.

The problem still persists. In the attached file you can find the files to reproduce the problem.
kstn.gid.tar.gz (691 Bytes)
cube.gid.tar.gz (11.3 KB)