cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Program continue after returning a string

JohnRudnicki
14-Alexandrite

Program continue after returning a string

Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".

ACCEPTED SOLUTION

Accepted Solutions

John Rudnicki wrote:

Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".

Use the 'on error' programming construct. See help or attached (Mathcad 11 .mcd worksheet)

Stuart

View solution in original post

2 REPLIES 2

John Rudnicki wrote:

Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".

Use the 'on error' programming construct. See help or attached (Mathcad 11 .mcd worksheet)

Stuart

Thanks. jwr

Announcements

Top Tags