Enum BooleanCriteria
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
บูลีนเกณฑ์
การแจกแจงค่าที่แสดงถึงเกณฑ์บูลีนซึ่งใช้ในการจัดรูปแบบตามเงื่อนไขหรือตัวกรองได้
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SpreadsheetApp.BooleanCriteria.CELL_EMPTY
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
CELL_EMPTY | Enum | เกณฑ์จะตรงตามเมื่อเซลล์ว่างเปล่า |
CELL_NOT_EMPTY | Enum | เกณฑ์จะตรงตามเมื่อเซลล์ไม่ได้ว่างเปล่า |
DATE_AFTER | Enum | เกณฑ์จะตรงตามเมื่อวันที่อยู่หลังค่าที่ระบุ |
DATE_BEFORE | Enum | เกณฑ์จะตรงตามเมื่อวันที่อยู่ก่อนค่าที่ระบุ |
DATE_EQUAL_TO | Enum | เกณฑ์จะตรงตามเมื่อวันที่เท่ากับค่าที่ระบุ |
DATE_NOT_EQUAL_TO | Enum | เกณฑ์จะตรงตามเมื่อวันที่ไม่เท่ากับค่าที่ระบุ |
DATE_AFTER_RELATIVE | Enum | เกณฑ์จะตรงตามเมื่อวันที่อยู่หลังค่าวันที่แบบสัมพัทธ์ |
DATE_BEFORE_RELATIVE | Enum | เกณฑ์จะตรงตามเมื่อวันที่อยู่ก่อนค่าวันที่แบบสัมพัทธ์ |
DATE_EQUAL_TO_RELATIVE | Enum | เกณฑ์จะตรงตามเมื่อวันที่เท่ากับค่าวันที่แบบสัมพัทธ์ |
NUMBER_BETWEEN | Enum | เกณฑ์จะเป็นไปตามข้อกำหนดเมื่อตัวเลขอยู่ระหว่างค่าที่ระบุ |
NUMBER_EQUAL_TO | Enum | เกณฑ์จะตรงตามข้อกําหนดเมื่อตัวเลขเท่ากับค่าที่ระบุ |
NUMBER_GREATER_THAN | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขมากกว่าค่าที่ระบุ |
NUMBER_GREATER_THAN_OR_EQUAL_TO | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขมากกว่าหรือเท่ากับค่าที่ระบุ |
NUMBER_LESS_THAN | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขน้อยกว่าค่าที่ระบุ |
NUMBER_LESS_THAN_OR_EQUAL_TO | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขน้อยกว่าหรือเท่ากับค่าที่ระบุ |
NUMBER_NOT_BETWEEN | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขไม่อยู่ในช่วงของค่าที่ระบุ |
NUMBER_NOT_EQUAL_TO | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่อตัวเลขไม่เท่ากับค่าที่ระบุ |
TEXT_CONTAINS | Enum | เกณฑ์จะตรงตามเมื่ออินพุตมีค่าที่ระบุ |
TEXT_DOES_NOT_CONTAIN | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่ออินพุตไม่มีค่าที่ระบุ |
TEXT_EQUAL_TO | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่ออินพุตเท่ากับค่าที่ระบุ |
TEXT_NOT_EQUAL_TO | Enum | เกณฑ์จะตรงตามเมื่ออินพุตไม่เท่ากับค่าที่ระบุ |
TEXT_STARTS_WITH | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่ออินพุตเริ่มต้นด้วยค่าที่ระบุ |
TEXT_ENDS_WITH | Enum | เกณฑ์จะตรงตามข้อกำหนดเมื่ออินพุตลงท้ายด้วยค่าที่ระบุ |
CUSTOM_FORMULA | Enum | เกณฑ์จะตรงตามเมื่ออินพุตทําให้สูตรที่ระบุให้ค่าเป็น true |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eBooleanCriteria\u003c/code\u003e is an enumeration used to define criteria for conditional formatting or filtering in Google Sheets.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a variety of properties representing different criteria types like \u003ccode\u003eCELL_EMPTY\u003c/code\u003e, \u003ccode\u003eDATE_EQUAL_TO\u003c/code\u003e, \u003ccode\u003eNUMBER_GREATER_THAN\u003c/code\u003e, \u003ccode\u003eTEXT_CONTAINS\u003c/code\u003e, and more.\u003c/p\u003e\n"],["\u003cp\u003eTo use a specific criteria, you call it using the syntax \u003ccode\u003eSpreadsheetApp.BooleanCriteria.<property>\u003c/code\u003e, for example, \u003ccode\u003eSpreadsheetApp.BooleanCriteria.CELL_EMPTY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach property represents a specific condition, such as whether a cell is empty, a date is within a certain range, or text contains a specific string.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBooleanCriteria\u003c/code\u003e helps automate tasks and enhance data analysis by enabling you to dynamically format or filter spreadsheet data based on specified conditions.\u003c/p\u003e\n"]]],[],null,["# Enum BooleanCriteria\n\nBooleanCriteria\n\nAn enumeration representing the boolean criteria that can be used in conditional format or\nfilter.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.BooleanCriteria.CELL_EMPTY`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------------------|--------|-------------------------------------------------------------------------------------|\n| `CELL_EMPTY` | `Enum` | The criteria is met when a cell is empty. |\n| `CELL_NOT_EMPTY` | `Enum` | The criteria is met when a cell is not empty. |\n| `DATE_AFTER` | `Enum` | The criteria is met when a date is after the given value. |\n| `DATE_BEFORE` | `Enum` | The criteria is met when a date is before the given value. |\n| `DATE_EQUAL_TO` | `Enum` | The criteria is met when a date is equal to the given value. |\n| `DATE_NOT_EQUAL_TO` | `Enum` | The criteria is met when a date is not equal to the given value. |\n| `DATE_AFTER_RELATIVE` | `Enum` | The criteria is met when a date is after the relative date value. |\n| `DATE_BEFORE_RELATIVE` | `Enum` | The criteria is met when a date is before the relative date value. |\n| `DATE_EQUAL_TO_RELATIVE` | `Enum` | The criteria is met when a date is equal to the relative date value. |\n| `NUMBER_BETWEEN` | `Enum` | The criteria is met when a number that is between the given values. |\n| `NUMBER_EQUAL_TO` | `Enum` | The criteria is met when a number that is equal to the given value. |\n| `NUMBER_GREATER_THAN` | `Enum` | The criteria is met when a number that is greater than the given value. |\n| `NUMBER_GREATER_THAN_OR_EQUAL_TO` | `Enum` | The criteria is met when a number that is greater than or equal to the given value. |\n| `NUMBER_LESS_THAN` | `Enum` | The criteria is met when a number that is less than the given value. |\n| `NUMBER_LESS_THAN_OR_EQUAL_TO` | `Enum` | The criteria is met when a number that is less than or equal to the given value. |\n| `NUMBER_NOT_BETWEEN` | `Enum` | The criteria is met when a number that is not between the given values. |\n| `NUMBER_NOT_EQUAL_TO` | `Enum` | The criteria is met when a number that is not equal to the given value. |\n| `TEXT_CONTAINS` | `Enum` | The criteria is met when the input contains the given value. |\n| `TEXT_DOES_NOT_CONTAIN` | `Enum` | The criteria is met when the input does not contain the given value. |\n| `TEXT_EQUAL_TO` | `Enum` | The criteria is met when the input is equal to the given value. |\n| `TEXT_NOT_EQUAL_TO` | `Enum` | The criteria is met when the input is not equal to the given value. |\n| `TEXT_STARTS_WITH` | `Enum` | The criteria is met when the input begins with the given value. |\n| `TEXT_ENDS_WITH` | `Enum` | The criteria is met when the input ends with the given value. |\n| `CUSTOM_FORMULA` | `Enum` | The criteria is met when the input makes the given formula evaluate to `true`. |"]]