Finally, we’re going to extend this workflow further with another new Cyclr feature.
What we have here is the Cyclr switch. We can use this to provide a series of parameters that will look through data as it’s going through the workflow, then through the switch, and passes off into different branches.
So taking this example, what we’ll do now is we’re going to just connect out from the false branch. From here, we can select a source, which is any other step previously used in the workflow. So I’m going to be going back to our HTTP request.
And what we would do with something like this in this example, is say we were accessing an endpoint which past multiple coins. So if we went to say chart name, so one charts for example, could be Bitcoin. Another one could be Etherium. And another could be XRP.
So by adding these in, we now have these additional steps, additional branches that we can connect up to anything else to work through, separately further on in the workflow, or combined with linking a step to another workflow.
When data is passing through here, if the chart in this example was Bitcoin, it would go down this path, Ethereum, this path. If it didn’t meet any of these statements here, it would go down the default path.
You can add as many different switch statements as you want to be able to break up the data and processes in as many different ways as you need.