i am having a problem with this code
IF Planet.PType.WType = \"Tiny (Ice)\" OR Planet.PType.WType = \"Tiny (Rock)\" OR Planet.PType.WType = \"Tiny (Sulfur)\"
Planet.Size.Mini = SQRT(BBTemperature / Planet.Size.Density) * 0.004
Planet.Size.Maxi = SQRT(BBTemperature / Planet.Size.Density) * 0.024
ELSE
IF Planet.PType.WType = \"Small (Hadean)\" OR Planet.PType.WType = \"Small (Ice)\" OR Planet.PType.WType = \"Small (Rock)\"
Planet.Size.Mini = SQRT(BBTemperature / Planet.Size.Density) * 0.024
Planet.Size.Maxi = SQRT(BBTemperature / Planet.Size.Density) * 0.03
ELSE
IF Planet.PType.WType = \"Standard (Hadean)\" OR Planet.PType.WType = \"Standard (Ammonia)\" OR Planet.PType.WType = \"Standard (Ice)\" OR Planet.PType.WType = \"Standard (Ocean)\" OR Planet.PType.WType = \"Standard (Garden)\" OR Planet.PType.WType = \"Standard (Greenhouse)\" OR Planet.PType.WType = \"Standard (Chthonian)\"
Planet.Size.Mini = SQRT(BBTemperature / Planet.Size.Density) * 0.03
Planet.Size.Maxi = SQRT(BBTemperature / Planet.Size.Density) * 0.065
ELSE
IF Planet.PType.WType = \"Large (Ammonia)\" OR Planet.PType.WType = \"Large (Ice)\" OR Planet.PType.WType = \"Large (Ocean)\" OR Planet.PType.WType = \"Large (Garden)\" OR Planet.PType.WType = \"Large (Greenhouse)\" OR Planet.PType.WType = \"Large (Chthonian)\"
Planet.Size.Mini = SQRT(BBTemperature / Planet.Size.Density) * 0.065
Planet.Size.Maxi = SQRT(BBTemperature / Planet.Size.Density) * 0.091
ENDIF
ENDIF
ENDIF
ENDIF
TMP# = Planet.Size.Maxi - Planet.Size.Mini
TMP# = (DROLL(2,6) - 2) * (TMP/10)
Planet.Size.Diameter = Planet.Size.Mini + TMP#
Planet.Size.Maxi, Planet.Size.Mini and Planet.Size.Diameter all come out as a 0.
They are all floats so it should work, i think it may have something to do with the amount of or statements...
help is appreciated..
EDIT: SOLVED, i didnt type out the types correctly...