EXPRESSION SYNTAX(表达式语法)
Here are some of the main syntax elements which you will encounter again and again when using expression functions:(以下是主要的语法元素,你会一次又一次地遇到一些使用表达式函数:)
() Brackets Brackets are used in order to list all of the arguments that will be contained within a function. Whenever a function is used, there must be an open bracket and a closed bracket. One of the easiest mistakes to make when creating expressions is to accidentally have the incorrect number of brackets.
()括号括号的使用是为了列举出所有的将要包含在函数中的参数。每当使用一个函数,必须有一个开放的括号和一个封闭的括号。最简单的错误之一就是当你创建表达式时,意外的有多个数目不正确的括号。
“”Quotation When a string must be used as an argument inside a function, it must be contained within quotation marks. This can include parameter names, and file paths.
“”引号当一个字符串必须被用作在一个函数的参数,它必须包含在引号内。这可以包括参数名,和文件路径。
`` Back Ticks When an HScript expression has been entered into a string type parameter, it must be enclosed in backticks in order to be evaluated as an expression. For example, if you are attempting to use an expression function inside a file path, you will need to include the backticks on either end of your function.
``返回标记当HScript表达式中已经输入了一个字符串类型的参数,它必须包含在返回标记内,以便作为一个表达式的计算。例如,如果您正试图使用在一个文件路径表达式功能,您需要在您的函数结束包含一个返回标记。
‘’ Apostrophe Text inside apostrophes are not expanded. It may be necessary at times to use these characters inside strings to prevent a variable from being recognized as a
Houdini的表达式翻译 来自淘豆网www.taodocs.com转载请标明出处.