small example snippet for loop with progressbar 
Set Variable [ $fkmlCompany ; Wert: "" ]
---# start:
---# set up count of elements in multiline key, set counter to 1
Variable setzen [ $CountE ; Wert: ElementeAnzahl($fkmlCompany) ]
Variable setzen [ $CounterE ; Wert: 1 ]
---#
---# setup progress dialog: Title will appear as window title, Top Text above the bar, Bottom Text below the bar, can be used for textual feedback to the user with additional counter in a loop
Set Variable [ $PDTitle ; Wert: MBS("ProgressDialog.SetTitle"; "Create Items") ]
Set Variable [ $PDTopText ; Wert: MBS("ProgressDialog.SetTopText"; "processed values") ]
Set Variable [ $PDBottomText ; Wert: MBS("ProgressDialog.SetBottomText"; "here we go") ]
Set Variable [ $PDButtonCaption ; Wert: MBS("ProgressDialog.SetButtonCaption"; "Cancel") ]
Set Variable [ $PDClearImage ; Wert: MBS("ProgressDialog.ClearImage") ]
Set Variable [ $PDSetProgressStart ; Wert: MBS("ProgressDialog.SetProgress";-1) ]
Set Variable [ $PDShow ; Wert: MBS("ProgressDialog.Show") ]
---#
Loop
Set Variable [ $PDSetProgress ; Wert: MBS("ProgressDialog.SetProgress"; $CounterE * 100/$CountE) ]
Set Variable [ $PDBottomText ; Wert: MBS("ProgressDialog.SetBottomText"; GetAsText($CounterE) & " of " & GetAsText($CountE)) ]
---# function loop start
---# get value from multiline key by counter
Set Variable [ $fkCompany ; Wert: GetValue( $fkmlCompany ; $CounterE ) ]
---# function loop stopp
---# catch "Cancel"-button in progress dialog
Exit Loop If [ MBS("ProgressDialog.GetCancel") ]
---# condition for end of loop: counter greater than count, counter incremented in condition by 1 per loop
Exit Loop If [ Let( [ $CounterE = $CounterE + 1] ; $CounterE > $CountE) ]
End Loop
---# stop
Set Variable [ $PDBottomText ; Wert: MBS("ProgressDialog.SetBottomText";"cleaning up β¦") ]
Pause Script [ Duration (Seconds): 1 ]
Set Variable [ $PDHide ; Wert: MBS("ProgressDialog.Hide") ]