카타 8급 Grasshopper - If/else syntax debug

PHP[ | ]

function checkAlive($health) {
  if ($health <= 0) {
    return false;
  } else {
    return true;
  }
}
function checkAlive($health) {
  return $health > 0;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}