do loop

I have a stru contains with many SCTN.

each SCTN has a special UDA  :LFORCE , which has some load value.

I want to add all SCTN's UDA values in a single variable. If the UDA :LFORCE , is unset then the value for a particular SCTN will be " Cutlen of SCTN / 8 "