Skip to main content

Variables

Variables are used to store data values, SFHub Studio uses the set SFCodeblock to declare variables. SigmafineHub does not require explicit definition of the variable type as variable type is determined by the assigned value.

The SFHub syntax supports two types of variables:

  • Element variable, Element variable name must start with $
  • Analytic variable, analytic variable name must start with $$

An equal sign is used to assign values to variables, in this example, $x is defined as a variable and is assigned the value 90 :

$x = 90