[Var:'errorFlag'=false,'errorCode'=0,'errorMsg'='No error']
[If:(Valid_Email:(Var:'MyVar'))==true]
[Var:'errorFlag'=true,'errorCode'=7777,'errorMsg'='You did not complete all required fields.']
[/If]
[If:(Var:'errorFlag')==true]
[Else:(Action_Param:'keyID')=='']
[Var:'errorFlag'=true,'errorCode'=9999,'errorMsg'=('ERROR: Some unknown error occurred.
Please report the following to the Web site administrator.
Key ID Error on: ', (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/',(Response_FilePath),' ',(Error_CurrentError),'/',(Error_CurrentError:-ErrorCode)))]
[Else:(Action_Param:'name')=='']
[Var:'errorFlag'=true,'errorCode'=7777,'errorMsg'='You did not complete all required fields.']
[else]
[inline:
-Database= ...etc
-Search]
[If:(error_currenterror)==(Error_NoError)]
...ok...
[Error_SetErrorCode:5000]
[Error_SetErrorMessage:'The action was a success this is a message to report that fact.']
[Include:'OK.lasso']
[else]
[Var:'errorFlag'=true,'errorCode'=9999,'errorMsg'=('ERROR: Some unknown error occurred.
Please report the following to the Web site administrator.
Error on: ' + (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/' + (Response_FilePath) + ' ' + (Error_CurrentError) + '/' + (Error_CurrentError:-ErrorCode)))]
[Var:'errorFlag'=true,'errorCode'=7777,'errorMsg'='No records found.']
[/If]
[/inline]
[/If]
[If:(Var:'errorFlag')==true]
[Error_SetErrorCode:(Var:'errorCode')]
[Error_SetErrorMessage:(Var:'errorMsg')]
[Include:'Origform.lasso']
[/If]
[If:(Error_CurrentError:-ErrorCode)>500]
[Error_CurrentError:-EncodeNone]
[/If] [If:(Error_CurrentError:-ErrorCode)>500][Error_CurrentError:-EncodeNone]
[/If] .alert { font-family:arial,helvetica,geneva,sans-serif,sans-serif; font-size:14px; font-weight:bold; color:#CC0000; }