Define Variable Step
Brief description
This step is a declaration of a new variable. In the declaration, you can add initial value (examples of use).
Step Information
Step Name (Not required)– the custom name of the process step that labels the editor’s process step box
Input Parameters
- Name (Required)- the custom variable name
- Type (Required)– choose a type from the drop-down list
There are the following types:
Integer - a number that can be written without a fractional component.
Decimal - non-repeating decimal fractions
Boolean - has one of two possible values (usually denoted true or false).
String - a set of characters that can also contain spaces and numbers
DateTime - used to store date and/or time
- Initial value (Not required) - in the case of integer and decimal type, must have an initial value. Other types are optional
Additional comments
There are specific rules for naming variables, including keywords in C# and Python that are not allowed.
Start Character:
- The variable name must start with a letter (a-z or A-Z) or an underscore (_).
- It cannot start with a number or any other character.
Allowed Characters:
- The variable name can only contain letters, digits (0-9), and underscores (_).
- It cannot contain spaces, hyphens (-), special characters (like @, !, #, etc.), or punctuation.
Keyword Restriction:
- The name cannot be a reserved keyword in Python or C#.
- Using a keyword as a variable name would cause syntax errors or unexpected behavior.
- Disallowed: Reserved Keywords (these keywords cannot be used as variable names):
- Python keywords: False, None, True, and, as, assert, async, await, break, class, continue, def, del, elif, else, except, finally, for, from, global, if, import, in, is, lambda, nonlocal, not, or, pass, raise, return, try, while, with, yield
- C# keywords: abstract, base, bool, byte, case, catch, char, checked, const, decimal, default, delegate, do, double, enum, event, explicit, extern, fixed, float, foreach, goto, implicit, int, interface, internal, lock, long, namespace, new, null, object, operator, out, override, params, private, protected, public, readonly, ref, sbyte, sealed, short, sizeof, stackalloc, static, string, struct, switch, this, throw, typeof, uint, ulong, unchecked, unsafe, ushort, using, virtual, void, volatile