I got table like that one (Example).
I need to change 0 to 1 and -1 to 0 in each field except first and second.
The problem is that every time i have different number of fields and field name is changed too, but i can use wildcard "FID_" to select a field name.
I read some stuff about, should be like that:
def test(field.name):
fieldList = ListFields(%path%)
for field in fieldList:
if (field.name)==0:
EQ=1
else:
EQ=0
return EQ
%path% should be the value taken from model-builder (if that is possilbe).