example ===== # We perform a loop from 1 to 10 .. code-block:: text for k in range (1.10): # # we call one or more commands (AFFE_CHAR_MECA, STAT_NON_LINE, etc.) ... # we get the time left in table TAB TAB = INFO_EXEC_ASTER (LISTE_INFO =' TEMPS_RESTANT ') # we get the time value in a Python variable valcpu= TAB ['TEMPS_RESTANT ',1] # this instruction requires # to be in PAR_LOT mode =' NON ' # we test this python variable, if there is less than 5 s left, we exit the loop if valcpu< 5.0: Break # we destroy the table type concept, to be able to recreate it at the next iteration. DETRUIRE (CONCEPT =( _F (NOM = TAB),))