Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
linenumberstrue
if(space != "AS" AND&& comalaGetState(id) == "Archive") { //exclude from archive space and check state
    
    addComment(id, "Moving page to archive space"); //adds comment to page
    number archiveHome = getPage("AS", "Archive Space Home"); //gets id of the archive spaces home page
    movePage(id, archiveHome); //moves page under the archive space
}

...