[SOLVED]Bug with sc_error_message

Hi people, i think is a bug with SC 6.00.0031

In a control app. on validate i have something like this

if (condition==1) { sc_error_message(" Hellow 1"); }

$message=“these don’t have to be printed”;
echo $message;

if condition==1 there is an error message but it suppose to exit because of error, instead
all the next code is executed.

Can you solve this behavior?

Re: Bug with sc_error_message

Hi,
the sc_error_message() macro just displays the message nothing else. If you want to exit you have to use the sc_error_exit() macro as well.

if (condition==1) {
sc_error_message(" Hellow 1");
sc_error_exit();
}

$message=“these don’t have to be printed”;
echo $message;

jsb