Skip to main content

SFCodeBlocks Reference

The sections that follow explain each SFCodeBlock instruction in detail, while the following table provides a summary of the instruction set grouped by category.

CategoryName (Label)Description
ProgrammingFunctionFunction declaration - represents the beginning of the function
MainMain body of the analytic declaration
BreakInterrupt the execution of a loop
CallCall a function
ReturnExit from the current function
EndInterrupt the execution of the analytic
CommentCommentDefine a comment
LogicIf ThenCanonical If then
If Then ElseCanonical If then else
WhileCanonical While
ForLoop
For EachLoop on a collection
VariableSet[Declare] set a global variable
Interface[Declare] an interface global variable (parameters)
DebugDebug PrintFormattable debug print
AnalyticsReportFormattable report print
Exec AnalyticExec another analytic
Wait AnalyticWait for analytic completion
ActionDefine possible action
SF ConnectionsForEachConnectedLoop for each connect element integrated with a Switch condition by the connection type (input, output, attached)
ForEachConnectedInputLoop for each element connected in input
ForEachConnectedOutputLoop for each element connected in output
ForEachConnectedAttachedLoop for each element attached
SF CaseSelectDefine the new working space. Select modifies the elements collection according to the selection criteria.
Case CheckinCommit changes and release the case
Case CheckoutTry to check out the selected case
Case UndoCheckoutCase release
Case RunnerExecute case actions such as: Collect Elements, Collect Inputs...
Case SelectSwitch the execution context over a specific case
TaskTask RunQueues the specified function to run on parallel and returns a task handle for that work.
Task awaitWaits for the task to complete execution.