TRUE
Returns the true logical value.
Syntax
expression.TRUE();
expression - A variable that represents an ApiWorksheetFunction class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
Return a logical true value in a spreadsheet.
// How do I insert the logical true value into a cell in a spreadsheet?
// Set a cell to the boolean true value in a spreadsheet.
const worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
let ans = func.TRUE();
worksheet.GetRange("A1").SetValue(ans);