if int(theme.REPFLD_NUM) == 0: pass elif int(theme.REPFLD_NUM) == 1: repfld1 = str(theme.getValue("REPFLD_1")) output_text.write(seltheme.repfld1 + "\n") del repfld1 elif int(theme.REPFLD_NUM) == 2: repfld1 = str(theme.getValue("REPFLD_1")) repfld2 = str(theme.getValue("REPFLD_2")) output_text.write(seltheme.repfld1 + " - " + seltheme.repfld2 + "\n") del repfld1, repfld2 and so on.
Solved! Go to Solution.
[output_text.write(str(seltheme.getValue(repfld1)) + " - " + str(seltheme.getValue(repfld2)) + "\n")
[output_text.write(str(seltheme.getValue(repfld1)) + " - " + str(seltheme.getValue(repfld2)) + "\n")