低代码平台如何使用公式--异行星低代码平台为例(二)

公式运算及函数--中英文释意

函数

函数即系统定义的公式,可能需要您的输入值,并返回一个或几个值。例如,TODAY() 不需要输入值,但会返回当前日期。TEXT(value) 函数需要您输入百分比、数字或货币并返回文本。

运算符

一个符号,指定要执行的计算类型或其执行顺序。例如,“+”号指定两个值应相加。左括号和右括号指定想要先计算的表达式。

异行星低代码平台公式运算符和上下文函数

  • + (Add)
  • Calculates the sum of two values.
  • 计算两个值的和。
  • - (Subtract)
  • Calculates the difference of two values.
  • 计算两个值的差。
  • * (Multiply)
  • Multiplies its values.
  • 乘以它的值。
  • / (Divide)
  • Divides its values.
  • 除以它的值。
  • ^ (Exponentiation)
  • Raises a number to a power of a specified number.
  • 将一个数字赋值为指定数字的幂。
  • () (Open Parenthesis and Close Parenthesis)
  • Specifies that the expressions within the open parenthesis and close parenthesis are evaluated first. All other expressions are evaluated using standard operator precedence.
  • 指定首先计算左括号和右括号内的表达式。所有其他表达式都使用标准运算符优先级求值。
  • = and == (Equal)
  • Evaluates if two values are equivalent. The = and == operators are interchangeable.
  • 计算两个值是否相等。=和==操作符是可互换的。
  • \<> and != (Not Equal)
  • Evaluates if two values aren’t equivalent.
  • 如果两个值不相等,则求值。
  • < (Less Than)
  • Evaluates if a value is less than the value that follows this symbol.
  • 计算一个值是否小于此符号后面的值。
  • > (Greater Than)
  • Evaluates if a value is greater than the value that follows this symbol.
  • 计算一个值是否大于此符号后面的值。
  • <= (Less Than or Equal)
  • Evaluates if a value is less than or equal to the value that follows this symbol.
  • 计算一个值是否小于或等于此符号后面的值。
  • >= (Greater Than or Equal)
  • Evaluates if a value is greater than or equal to the value that follows this symbol.
  • 计算一个值是否大于或等于此符号后面的值。
  • && (AND)
  • Evaluates if two values or expressions are both true. Use this operator as an alternative to the logical function AND.
  • 计算两个值或表达式是否都为真。使用此运算符作为逻辑函数AND的替代。
  • || (OR)
  • Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the logical function OR.
  • 计算多个值或表达式中是否至少有一个为真。使用此运算符作为逻辑函数OR的替代。
  • & and + (Concatenate)
  • Connects two or more strings.
  • 连接两个或多个字符串。
  • ABS
  • Calculates the absolute value of a number. The absolute value of a number is the number without its positive or negative sign.
  • 计算一个数字的绝对值。一个数的绝对值是不带正号或负号的数。
  • ADDMONTHS
  • Returns the date that is the indicated number of months before or after a specified date. If the specified date is the last day of the month, the resulting date is the last day of the resulting month. Otherwise, the result has the same date component as the specified date.
  • 返回指定日期之前或之后的指定月数的日期。如果指定的日期是当月的最后一天,则结果日期为当月的最后一天。否则,结果具有与指定日期相同的日期组件。
  • AND
  • Returns a TRUE response if all values are true; returns a FALSE response if one or more values are false.
  • 如果所有值都为真,则返回TRUE响应;如果一个或多个值为假,则返回FALSE响应。
  • BEGINS
  • Determines if text begins with specific characters and returns TRUE if it does. Returns FALSE if it doesn't.
  • 确定文本是否以特定字符开头,如果以特定字符开头则返回TRUE。如果没有,则返回FALSE。
  • BLANKVALUE
  • Determines if an expression has a value and returns a substitute expression if it doesn’t. If the expression has a value, returns the value of the expression.
  • 确定表达式是否有值,如果没有则返回替代表达式。如果表达式有值,则返回该表达式的值。
  • BR
  • Inserts a line break in a string of text.
  • 在文本字符串中插入换行符。
  • CASE
  • Checks a given expression against a series of values. If the expression is equal to a value, returns the corresponding result. If it isn't equal to any values, it returns the else_result.
  • 根据一系列值检查给定表达式。如果表达式等于一个值,则返回相应的结果。如果它不等于任何值,则返回else_result。
  • CASESAFEID
  • Converts a 15-character ID to a case-insensitive 18-character ID. If you pass in an invalid ID, the function returns the ID passed in.
  • 将15个字符的ID转换为不区分大小写的18个字符的ID。如果传入一个无效的ID,该函数将返回传入的ID。
  • CEILING
  • Rounds a number up to the nearest integer, away from zero if negative.
  • 将数字舍入到最接近的整数,如果为负数则远离零。
  • CONTAINS
  • Compares two arguments of text and returns TRUE if the first argument contains the second argument. If not, returns FALSE.
  • 比较文本的两个参数,如果第一个参数包含第二个参数,则返回TRUE。如果不是,则返回FALSE。
  • CURRENCYRATE
  • Returns the conversion rate to the corporate currency for the given currency ISO code. If the currency is invalid, returns 1.0.
  • 返回给定货币ISO代码到公司货币的兑换率。如果货币无效,则返回1.0。
  • DATE
  • Returns a date value from year, month, and day values you enter. Exoplanet low code platform displays an error on the detail page if the value of the DATE function in a formula field is an invalid date, such as February 29 in a non-leap year.
  • 从您输入的年、月和日值中返回日期值。如果公式字段中DATE函数的值是无效日期,例如非闰年的2月29日,异行星低代码平台将在详细页面上显示错误。
  • DATEVALUE
  • Returns a date value for a date/time or text expression.
  • 返回日期/时间或文本表达式的日期值。
  • DATETIMEVALUE
  • Returns a year, month, day, and GMT time value.
  • 返回年、月、日和GMT时间值。
  • DAY
  • Returns a day of the month in the form of a number between 1 and 31.
  • 以1到31之间的数字形式返回一个月中的某一天。
  • DISTANCE
  • Calculates the distance between two locations in miles or kilometers.
  • 以英里或公里计算两个位置之间的距离。
  • EXP
  • Returns a value for e raised to the power of a number you specify.
  • 返回e的值,取指定数字的幂。
  • FIND
  • Returns the position of a string within a string of text represented as a number.
  • 返回字符串在以数字表示的文本字符串中的位置。
  • FLOOR
  • Returns a number rounded down to the nearest integer, towards zero if negative.
  • 返回字符串在以数字表示的文本字符串中的位置。
  • GEOLOCATION
  • Returns a geolocation based on the provided latitude and longitude. Must be used with the DISTANCE function.
  • 返回基于所提供的纬度和经度的地理位置。必须与DISTANCE函数一起使用。
  • GETRECORDIDS
  • Returns an array of strings in the form of record IDs for the selected records in a list, such as a list view or related list.
  • 返回列表(如列表视图或相关列表)中所选记录的记录id形式的字符串数组。
  • GETSESSIONID
  • Returns the user’s session ID.
  • 返回用户的会话ID。
  • HOUR
  • Returns the local time hour value without the date in the form of a number from 1 through 24.
  • 以1到24之间的数字形式返回不含日期的本地时间小时值。
  • HTMLENCODE
  • Encodes text and merge field values for use in HTML by replacing characters that are reserved in HTML, such as the greater-than sign (>), with HTML entity equivalents, such as >.
  • 通过将HTML中保留的字符(如大于号(>))替换为HTML实体等效物(如>),对HTML中使用的文本和合并字段值进行编码。
  • HYPERLINK
  • Creates a link to a URL specified that is linkable from the text specified.
  • 创建指向指定URL的链接,该URL可从指定的文本链接。
  • IF
  • Determines if expressions are true or false. Returns a given value if true and another value if false.
  • 确定表达式是真还是假。如果为真则返回给定值,如果为假则返回另一个值。
  • IMAGE
  • Inserts an image with alternate text and height and width specifications.
  • 插入具有替代文本和高度和宽度规格的图像。
  • IMAGEPROXYURL
  • Securely retrieves external images and prevents unauthorized requests for user credentials.
  • 安全地检索外部映像并防止对用户凭证的未经授权的请求。
  • INCLUDE
  • Returns content from an s-control snippet. Use this function to reuse common code in many s-controls.
  • 从s控件片段返回内容。使用此函数可在许多s控件中重用公共代码。
  • INCLUDES
  • Determines if any value selected in a multi-select picklist field equals a text literal you specify.
  • 确定在多选择选择列表字段中选择的任何值是否等于您指定的文本字面量。
  • ISBLANK
  • Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE.
  • 确定表达式是否有值,如果没有则返回TRUE。如果它包含一个值,这个函数返回FALSE。
  • ISCHANGED
  • Compares the value of a field to the previous value and returns TRUE if the values are different. If the values are the same, this function returns FALSE.
  • 将字段的值与前一个值进行比较,如果值不同则返回TRUE。如果值相同,则此函数返回FALSE。
  • ISCLONE
  • Checks if the record is a clone of another record and returns TRUE if one item is a clone. Otherwise, returns FALSE.
  • 检查记录是否为另一条记录的克隆,如果其中一项是克隆则返回TRUE。否则,返回FALSE。
  • ISNEW
  • Checks if the formula is running during the creation of a new record and returns TRUE if it is. If an existing record is being updated, this function returns FALSE.
  • 检查在创建新记录期间公式是否正在运行,如果是则返回TRUE。如果现有记录正在更新,则此函数返回FALSE。
  • ISNULL
  • Determines if an expression is null (blank) and returns TRUE if it is. If it contains a value, this function returns FALSE.
  • 确定表达式是否为空(空),如果为空则返回TRUE。如果它包含一个值,这个函数返回FALSE。
  • ISNUMBER
  • Determines if a text value is a number and returns TRUE if it is. Otherwise, it returns FALSE.
  • 确定文本值是否是数字,如果是则返回TRUE。否则,返回FALSE。
  • ISPICKVAL
  • Determines if the value of a picklist field is equal to a text literal you specify.
  • 确定选定列表字段的值是否等于您指定的文本字面量。
  • JSENCODE
  • Encodes text and merge field values for use in JavaScript by inserting escape characters, such as a backslash (), before unsafe JavaScript characters, such as the apostrophe (').
  • 通过在不安全的JavaScript字符(如撇号('))之前插入转义字符(如反斜杠())来编码文本和合并字段值,以便在JavaScript中使用。
  • JSINHTMLENCODE
  • Encodes text and merge field values for use in JavaScript inside HTML tags by replacing characters that are reserved in HTML with HTML entity equivalents and inserting escape characters before unsafe JavaScript characters.
  • 编码文本和合并字段值,以便在HTML标记中使用JavaScript,方法是用HTML实体等价物替换HTML中保留的字符,并在不安全的JavaScript字符之前插入转义字符。
  • JUNCTIONIDLIST
  • Returns a JunctionIDList based on the provided IDs.
  • 根据提供的id返回一个JunctionIDList。
  • LEFT
  • Returns the specified number of characters from the beginning of a text string.
  • 从文本字符串的开头返回指定数目的字符。
  • LEN
  • Returns the number of characters in a specified text string.
  • 返回指定文本字符串中的字符数。
  • LINKTO
  • Returns a relative URL in the form of a link (href and anchor tags) for a custom s-control or Salesforce page.
  • 以链接(href和锚标记)的形式返回自定义s-control或Salesforce页面的相对URL。
  • LN
  • Returns the natural logarithm of a specified number. Natural logarithms are based on the constant e value of 2.71828182845904.
  • 返回指定数字的自然对数。自然对数基于常数e值2.71828182845904。
  • LOG
  • Returns the base 10 logarithm of a number.
  • 返回以10为底数的对数。
  • LOWER
  • Converts all letters in the specified text string to lowercase. Any characters that are not letters are unaffected by this function. Locale rules are applied if a locale is provided.
  • 将指定文本字符串中的所有字母转换为小写字母。非字母字符不受此函数影响。如果提供了区域设置,则应用区域设置规则。
  • LPAD
  • Inserts characters you specify to the left-side of a text string.
  • 将指定的字符插入到文本字符串的左侧。
  • MAX
  • Returns the highest number from a list of numbers.
  • 从数字列表中返回最大的数字。
  • MCEILING
  • Rounds a number up to the nearest integer, towards zero if negative.
  • 将一个数字舍入到最接近的整数,如果是负数则趋近于零。
  • MFLOOR
  • Rounds a number down to the nearest integer, away from zero if negative.
  • 将数字舍入到最接近的整数,如果为负数则远离零。
  • MID
  • Returns the specified number of characters from the middle of a text string given the starting position.
  • 从给定起始位置的文本字符串的中间返回指定数目的字符。
  • MILLISECOND
  • Returns a milliseconds value in the form of a number from 0 through 999.
  • 返回从0到999的数字形式的毫秒值。
  • MIN
  • Returns the lowest number from a list of numbers.
  • 从数字列表中返回最小的数字。
  • MINUTE
  • Returns a minute value in the form of a number from 0 through 60.
  • 返回从0到60的数字形式的分钟值。
  • MOD
  • Returns a remainder after a number is divided by a specified divisor.
  • 在数被指定除数除后返回余数。
  • MONTH
  • Returns the month, a number between 1 (January) and 12 (December) in number format of a given date.
  • 以给定日期的数字格式返回月份,即介于1(1月)和12(12月)之间的数字。
  • NOT
  • Returns FALSE for TRUE and TRUE for FALSE.
  • TRUE返回FALSE, FALSE返回TRUE。
  • NOW
  • Returns a date/time representing the current moment.
  • 返回表示当前时刻的日期/时间。
  • NULLVALUE
  • Determines if an expression is null (blank) and returns a substitute expression if it is. If the expression is not blank, returns the value of the expression.
  • 确定表达式是否为空(空),如果为空则返回替代表达式。如果表达式不为空,则返回表达式的值。
  • OR
  • Determines if expressions are true or false. Returns TRUE if any expression is true. Returns FALSE if all expressions are false.
  • 确定表达式是真还是假。如果任何表达式为真,则返回TRUE。如果所有表达式都为假,则返回FALSE。
  • PARENTGROUPVAL
  • This function returns the value of a specified parent grouping. A “parent” grouping is any level above the one containing the formula.
  • 此函数返回指定父组的值。“父”分组是包含公式的分组之上的任何级别。
  • PREDICT
  • Returns an Einstein Discovery prediction for a record based on the specified record ID or for a list of fields and their values.
  • 根据指定的记录ID或字段列表及其值返回记录的Einstein Discovery预测。
  • PREVGROUPVAL
  • This function returns the value of a specified previous grouping. A “previous” grouping is one that comes before the current grouping in the report.
  • 此函数返回指定的前一个分组的值。“前一个”分组是出现在报告中当前分组之前的分组。
  • PRIORVALUE
  • Returns the previous value of a field.
  • 返回字段的前一个值。
  • REGEX
  • Compares a text field to a regular expression and returns TRUE if there is a match. Otherwise, it returns FALSE.
  • 将文本字段与正则表达式进行比较,如果存在匹配,则返回TRUE。否则,返回FALSE。
  • REQUIRESCRIPT
  • Returns a script tag with source for a URL you specify. Use this function when referencing the Lightning Platform AJAX Toolkit or other JavaScript toolkits.
  • 返回带有指定URL源的脚本标记。在引用闪电平台AJAX工具包或其他JavaScript工具包时使用此函数。
  • REVERSE
  • Returns the characters of a source text string in reverse order.
  • 以相反顺序返回源文本字符串的字符。
  • RIGHT
  • Returns the specified number of characters from the end of a text string.
  • 从文本字符串的末尾返回指定的字符数。
  • ROUND
  • Returns the nearest number to a number you specify, constraining the new number by a specified number of digits.
  • 返回与您指定的数字最接近的数字,并将新数字限制为指定的位数。
  • RPAD
  • Inserts characters that you specify to the right-side of a text string.
  • 将指定的字符插入到文本字符串的右侧。
  • SECOND
  • Returns a seconds value in the form of a number from 0 through 60.
  • 返回从0到60的数字形式的秒值。
  • SQRT
  • Returns the positive square root of a given number.
  • 返回给定数字的正平方根。
  • SUBSTITUTE
  • Substitutes new text for old text in a text string.
  • 用新文本替换文本字符串中的旧文本。
  • TEXT
  • Converts a percent, number, date, date/time, or currency type field into text anywhere formulas are used. Also, converts picklist values to text in approval rules, approval step rules, workflow rules, escalation rules, assignment rules, auto-response rules, validation rules, formula fields, field updates, and custom buttons and links.
  • 在使用公式的任何地方将百分比、数字、日期、日期/时间或货币类型字段转换为文本。此外,还可以将选择列表值转换为审批规则、审批步骤规则、工作流规则、升级规则、分配规则、自动响应规则、验证规则、公式字段、字段更新以及自定义按钮和链接中的文本。
  • TIMENOW
  • Returns a time value in GMT representing the current moment. Use this function instead of the NOW function if you only want to track time, without a date.
  • 返回一个以GMT格式表示当前时刻的时间值。如果您只想跟踪时间,而不想显示日期,请使用此函数代替NOW函数。
  • TIMEVALUE
  • Returns the local time value without the date, such as business hours.
  • 返回不带日期的本地时间值,例如营业时间。
  • TODAY
  • Returns the current date as a date data type.
  • 将当前日期作为日期数据类型返回。
  • TRIM
  • Removes the spaces and tabs from the beginning and end of a text string.
  • 从文本字符串的开头和结尾删除空格和制表符。
  • UPPER
  • Converts all letters in the specified text string to uppercase.
  • 将指定文本字符串中的所有字母转换为大写。
  • URLENCODE
  • Encodes text and merge field values for use in URLs by replacing characters that are illegal in URLs, such as blank spaces, with the code that represent those characters as defined in RFC 3986, Uniform Resource Identifier (URI): Generic Syntax.
  • 编码文本和合并字段值,以便在url中使用,方法是用RFC 3986,统一资源标识符(URI):通用语法中定义的表示这些字符的代码替换url中的非法字符,例如空格。
  • URLFOR
  • Returns a relative URL for an action, s-control, Visualforce page, or a file in a static resource archive in a Visualforce page.
  • 返回操作、s-control、Visualforce页面或Visualforce页面中静态资源存档中的文件的相对URL。
  • VALUE
  • Converts a text string to a number.
  • 将文本字符串转换为数字。
  • VLOOKUP
  • Returns a value by looking up a related value on a custom object similar to the VLOOKUP() Excel function. This function is only available in validation rules.
  • 通过在类似于VLOOKUP() Excel函数的自定义对象上查找相关值来返回一个值。此函数仅在验证规则中可用。
  • WEEKDAY
  • Returns the day of the week for the given date, using 1 for Sunday, 2 for Monday, through 7 for Saturday.
  • 返回给定日期的星期几,星期日使用1,星期一使用2,星期六使用7。
  • YEAR
  • Returns the four-digit year in number format of a given date.
  • 以数字格式返回给定日期的四位数年份。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Abelon

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值