Identifiers
Identifiers are names. In SFHub, identifiers are used to name variables, keywords, functions, enumerators and attributes. Identifiers must adhere to the following rules:
The identifier starts with
$, it's an Element variableThe identifier starts with
$$, it's an analytic variableThe identifier starts with
_, it's an Element discard variableThe identifier starts with
__, it's an Analytic discard variableThe identifier starts with a number, or starts with
--followed by numbers, it's a numberThe identifier starts with
{, it's a keywordThe identifier starts with
', it 's a stringIn all other cases the identifier is an Attributes
Identifiers cannot contain the following characters:
- Hyphens are not allowed, they are reserved for subtractions
- Colons are not allowed, they are reserved for Keywords
- Exclamation points are not allowed, they are reserved for Unit of Measure conversion
- Graph brackets are not allowed, they are reserved for Keywords
@signs are not allowed, as they are reserved for remainder operators- Square brackets are not allowed, they are reserved for Table/Table Row/List/Dictionary access