How can I code the Mathematica equivalent of the following pseudocode:
if[condition] ... goto[label_1] ... else goto[label_2]
label_2 are in different cells. I've trawled the documentation, the web and this SE, but can't find anything.
Specifically, I'm trying to compute the flow field of different types of fluids. The computation depends on the nature of the fluid, so, I want to say: if fluid_type_1, do algorithm_1, if fluid_type_2, do algorithm_2. Easy to do in Fortran, Python, etc., but I'd like to do it in Mathematica -- which is more accessible to my students.