Conditional Logic
Conditional logic, often referred to as "IF Conditions" in viaSocket, is a feature that allows users to set up conditions in their workflows. These conditions act as gatekeepers, controlling the flow of actions based on specific criteria. Conditional logic enables users to create dynamic workflows that respond to different situations, enhancing efficiency and customization.
          ÂHow to Create Conditional Logic in viaSocket?
Â
1) Identify the Condition:Â
Start by identifying the condition you want to check. This can be a simple statement or a complex expression involving multiple variables and operators.
Â
2) Set the Condition:Â
Use the IF Condition tool to input the condition. viaSocket supports complex conditions, allowing for a wide range of scenarios.
Â
3) Define Actions:Â
Based on the condition's result, define the actions to be taken. These actions can include running specific functions, or any third-party applications.
Step by step guide on how to set up conditions in your workflows.
​
Let’s see more examples of how you can utilize the If Conditions in viaSocket
        Â
(ii) Strict equality operator (===):
         Â
(iii) Inequality operator (!=):
         Â
(iv) Strict Inequality operator (!==):
         Â
(v) Greater than operator (>):
        Â
(vi) Greater than or equal to operator (>=):
        Â
(vii) Less than operator (<):
        Â
(viii) Less than or equal to operator (<=):
        Â
(ix) Logical AND operator (&&):
        Â
(x) Logical OR operator (||):
Frequently Asked Questions:
Â
Q. Can I use multiple conditions in a single IF statement?
Yes, viaSocket supports the use of multiple conditions in a single IF statement. You can combine conditions using logical operators such as AND (&&) or OR (||) to create complex logic.
Â
Q. Can I use variables in my conditions?
Yes, viaSocket allows you to use variables in your conditions. This enables dynamic decision-making based on the values of variables in your workflow.
Â
Q. What happens if my condition is not met?
If the condition in an IF statement is not met, viaSocket will skip the actions associated with that condition and proceed to the next step in the workflow.
Â