Programming
There are some basic concepts to be followed to create your first analytic:
Each SFHub Studio Analytic must always have one and only one 'Main' SFCodeBlock.
Main and Function are the only SFCodeBlocks without the TOP port and can be placed in any position in the window
Main and Function SFCodeBlocks should have attached SFCodeBlocks representing the logic
You cannot have scattered SFCodeBlocks. Each SFCodeBlock having a TOP port must be connected to the bottom port of the previous SFCodeBlock. The only exception to this rule, applies to the 'Comment' SFCodeBlock, which can be placed in any position in the window or connected inside a sequence of SFCodeBlocks.
Correct Main Function

Correct Function

Correct Comments

Incorrect Function
