I'm working with LexisNexis VisualFiles, whose scripting language doesn't allow for descriptive variable names - all it allows is "temporary fields" and "local fields" named TF01, TF02 or LF01, LF02 etc. Other data comes from "entities" so the descriptive name of any entity is "selectedentity.EN01" for instance.
This is horribly difficult to maintain, especially as a lot of what I'm editing wasn't commented when it was written. Particularly, if I find I need to use a new variable after writing a block of code, I find I'm just trying to invent variable numbers that I'm reasonably certain haven't been used anywhere else. Does anyone have any suggestions as to how to make code like this readable and maintainable, short of commenting each and every single line manually?
Edit: This is not ECL, this is the scripting language for Visualfiles. There are no resources I can find online, my only reference is the Help file that comes with the software. This is the sort of code I'm trying to decipher:
[&Assign LF12=""]
[&Assign LF13=""]
[&Assign LF10=ARAN_AAFOO.en02]
[&Assign LF11=ARAN_AAFOO.EN56]
[&Assign LF12=ARAN_AAFOO.ABAR_ARAN.DET03]
[&Assign LF13=ARAN_AAFOO.ABAR_ARAN.DET02]
[&If LF12<> "This" &And LF12 <> "That"]
[&If LF13=""]
[&Assign LF13="Something"]
[&Else]
[&Assign LF13=LF13]
[&EndIf]
[&If DET12="Yes"] **priority
[&Assign LF35="Top"]
[&Assign LF36="abnormal"]
[&Else]
[&Assign LF35="Bottom"]
[&Assign LF36="normal"]
[&EndIf]
Any variable can be any type, so I'm looking for a system that will help me keep organised and keep track of what I'm writing - if "comment everything" is the only solution that's fine too.