...
Code Block |
---|
{ if(count <= 0){ window.location = "melt://showAlert/ You can not cancel this record, at least one Activity record is required for this Lead "; return false; } |
Code Block |
---|
else{ return true; }
} |
defines Otherwise the code below defines what happens if the conditional query is not met (that is, when other activities exist), and allows you to cancel creating the current activity.
Code Block |
---|
else{ return true; }
} |
A right brace } closes the conditional query, and the footer follows.