mercredi 9 juin 2021

Skipping lines in Fortran

What lines are read in an Fortran IF-statement? I wondered which of these three lines will be read depending on the IF-statement outcome:

    IF (x.GT.y) GOTO 100
    x= y+1
100 x = y

Will the indexed row 100 always be read? Or is it skipped if the IF-statement returns True and x= y+1 is stored?

Aucun commentaire:

Enregistrer un commentaire