Trix & Graphix

Switch in Fortran 90

A very quick post... I have just found out the Fortran 90 syntax for the equivalent of the switch command in C or case in Bash.


selectcase(var)
case(a)
print*, 'var=', a
case(b)
print*, 'var=', b
end select