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.

 

                         



Let’s see more examples of how you can utilize the If Conditions in viaSocket


(i) Equality operator (==):



(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.