Convert c++/php code to AS?

Hi!
I dont know AS, but I know c++ and php. therefor I would like to know if you could remake this code to AS? I would appreciate that.

if ( (writer != “”) && (email != “”) && (poem != “”) && )
{
//bla bla
} else {
poem_added = “fill in all the fields please!”
}

/thanx for helping, SanTiago_99