winmaux

5 Reputation

One Badge

0 years, 136 days

MaplePrimes Activity


These are replies submitted by winmaux

First of all, thanks for your answer!
Though i don't think i can solve my problem this way.

To describe my situation more detailed: The code i wrote is about 80 code lines long and shall give the user the possibility to enter different entry conditions to calculate the wanted result. The aim is to calculate the resulting stress in a component by entering either the applied forces or the measured deformations. Now, if the deformation is given i want to skip a bunch of code lines (about 30-40 lines) because they are only needed if the applied Force is given. Because the code is so long and a lot of different values get computed along the way i don't think it is a viable way to put them all together in one execution group or put the hole programm in one "if...then...else" expression.

What i imagined it to be is somthing like this:

If <Deformation is given / ε ≠0 > then <skip code lines x-y/jump to line x> end if

The syntax is not so much my problem, rather i am looking for a command which disables/deactivates a given number of code lines.

First of all, thanks for your answer!
Though i don't think i can solve my problem this way.

To describe my situation more detailed: The code i wrote is about 80 code lines long and shall give the user the possibility to enter different entry conditions to calculate the wanted result. The aim is to calculate the resulting stress in a component by entering either the applied forces or the measured deformations. Now, if the deformation is given i want to skip a bunch of code lines (about 30-40 lines) because they are only needed if the applied Force is given. Because the code is so long and a lot of different values get computed along the way i don't think it is a viable way to put them all together in one execution group or put the hole programm in one "if...then...else" expression.

What i imagined it to be is somthing like this:

If <Deformation is given / ε ≠0 > then <skip code lines x-y/jump to line x> end if

The syntax is not so much my problem, rather i am looking for a command which disables/deactivates a given number of code lines.

Page 1 of 1