We've been working on this article. Please let us know how useful this new version is by voting.
An operand tells the platform which data to use to manipulate an expression. For example, in the expression
MyValue + 1,
1 are the operands.
Use the expression editor to see which operands are available in the current scope. The expression editor checks what variables, parameters, functions, and other values, you can use for an operation in, for example, a screen or an action.
All operands always have a data type.
Literals are hard-coded values that you write in expressions, most often numbers and text. The following are some examples:
Message = "Hello, world!", Hello, world! is a literal.
1 + i, 1 is a literal.
isValid = False, False is a literal.
Check out basic data types for other examples of how you can use literals in expressions.
Variables are identifiers that point to values. Here are some examples.
Message = "Hello, world!", Message is a variable.
1 + i, i is a variable.
isValid = False, isValid is a variable.
Use smart names to set the data type automatically. For example, if you create a value or parameter, and name it PurchaseDate, Service Studio sets the data type to Date. See more in Service Studio Tips and Tricks.
You can use functions as operands. The following are some examples:
Sqrt(9) + 3, Sqrt() is one of the built-in functions.
MyFunction(1000) * 100, MyFunction() is a user-defined function.
See Built-in Functions for more information.
The following is a screenshot showing an expression in the expression editor. The expression consists of:
3000: a literal
MyInteger: a local variable
Sqrt(): a built-in function