I was wondering if there's anyway to 'stop' a parameter going through if a certain condition is made.
My current code looks something like this
for FMUV in FMUVList:
    ET.SubElement(fmiMV, "ScalarVariables",
                  name=FMUV.getName(),
                  valueReference=FMUV.getRNumber(),
                  description=FMUV.getDescription(),
                  start=FMUV.getStart())
Name and ValueReference is always set, but description and start might not be. I will also be adding more values later, so doing if statement for every single case might not be funniest way of doing it.
Someone got any ideas?
 
     
     
    