c = variables.comment if (! c.author || c.author.trim().length() == 0) { c.author = "unknown" } if (! c.body || c.body.trim().length() == 0) { c.body = "My comment is authoritative!" } c.metaData.modifyDate = new Date() e = variables.entry if (! e.author || e.author.trim().length() == 0) { e.author = "unknown" } if (! e.title || e.title.trim().length() == 0) { e.title = "Untitled" } if (! e.body || e.body.trim().length() == 0) { e.body = "This is my neat blog post. Kind of." } e.metaData.modifyDate = new Date()