;

PDA

Click to See Complete Forum and Search --> : Code Help - 3dfa/PHP users


dniezby
04-17-2003, 11:48 PM
I'm writing a short program that checks to see if the error_message is sent back to 3dfa. If the error message is present, it is supposed to load the error_message result (a layer with the message). Else it's supposed to go on as normal.

The problem I'm having is, how do I say, "just go on as normal". (supposing error_message is false.) Here is what I've done so far.

admin_email="admin@website.com" //Recipient's email


/* Variables to be imported from script
thankyou_message
error_message
*/
loadVariables ("http://script url.com","GET");

if error_message=="show error message"{
display_message=element ("Layer 12")
display_message.show();
}
{
else{

What????? Is there a command that says go on as usual?

Do you think I would be better to use a CASE command? and just use one variable?

SirN
04-18-2003, 01:48 AM
It sounds to me like you don't need a "just go on as normal (supposing error_message is false.) "

when code is run 1 time /frame:
if error_message == true {
// here you write what to do when you want to send
}
and after that no more is needed and it will go on as normal

dniezby
04-18-2003, 01:56 AM
Yeah, I kinda figured that out. I had another statement I was working on and forgot to put the else statment in and the program continued.

Found out by accident.

Thanks