tags:

views:

82

answers:

1

I wrote this code in VB to label columns in a table but now im writting a python script to automate the process and i can't make it work. Any thoughts??

Static v1 as variant
Static v2 as variant

Dim Output as double
Dim Start as double

Start = 1

If v2 = [XMIN] Then
    Output = v1
Else
    Output = v1 + 1
End If

v1 = Output
v2 = [XMIN]
A: 

i don't actually know how or what [XMIN] if , but if its just a string,

Output=0
if v2 == "[XMIN]" :
    Output = v1
else:
    Output = v1 + 1

v1 = Output
v2 = "[XMIN]"
ghostdog74
[XMIN] is trying to call the lowest X value from a field thats what im having a problem doing... but thanks for the help
David