Based on the number in one cell, I want to use Google Script Editor send an email with the name from the adjacent cell
<p>I want to send an email when a cell in column B reaches 5. However, I want part of the email to have the individual's name from column A. Here's my code so far:</p>

<pre><code>function ifstatement() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName("Total");
var value = sheet.getRange("B3:B241").getValue();
if(value === 5) { 
  MailApp.sendEmail("jdoe@gmail.com", "Update", "Hi," name "are you alright?");
   }
}
</code></pre>

<p>I'm trying to define the variable "name" so that it adds the person's name from column A. Could anyone please help me! </p>