Google 會運用 AI 技術將內容翻譯成您偏好的語言,但可能會出錯。
matches_filter
透過集合功能整理內容
您可以依據偏好儲存及分類內容。
matches_filter 函式可用於自訂篩選器和自訂欄位,用來判斷欄位值是否符合篩選器運算式。
語法
matches_filter(field, filter expression)
matches_filter 函式會將篩選運算式套用至欄位,如果欄位中的值與篩選運算式相符,則傳回 Yes;如果不相符,則傳回 No。
範例
如果月結單日期在 30 天內,這個範例會在自訂欄位中傳回 Yes:
matches_filter(${billing.invoice_date}, `30 days`)
使用 if 函式搭配 matches_filter,即可傳回不同的值。下方範例顯示自訂欄位的語法,如果帳單日期超過 30 天,就會傳回「Late」:
if(matches_filter(${billing.invoice_date}, `30 days`), "Current", "Late")
注意事項
定義篩選器運算式的字串必須加上反斜線 (`) 字元。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-10-19 (世界標準時間)。"],[],[]]