The If Then Else action allows you to define different action paths based on specific conditions in the Kuika platform. It is used to manage logical decisions within the application and create dynamic workflows. If the condition is true, the actions in the ‘If’ section are executed; if false, the actions in the ‘Else’ section are executed. The action is supported in both web and mobile applications.
Technical Features
Adding the If Then Else Action to the Project
Configuring the If Then Else Action
In the menu that opens, you can configure the following fields to create condition-based workflow:
These actions can include system or custom actions such as page redirection, data updating, or displaying warnings.
In other words, what you are doing here is creating an ‘if-then’ structure: If the specified condition is met → perform these actions, otherwise → perform these actions.
All Common Condition Descriptions
Condition Types and Usage Descriptions
Now (Current Date-Time)
True / False (Boolean Fields)
New Guid / Empty Guid
Current User Name
Client IP Address
Version Info
Role List (User Role)
If-Then-Else Structure
If Actions
Else Actions
In an application, you may want to redirect users to different screens based on their roles (e.g., Admin, User, Guest). Kuika's If Then Else action allows you to easily perform such role-based redirection. With this action, the role of the user logging into the application is checked, and they are redirected to the appropriate screen. This provides a personalised experience for the user and ensures authorisation management.
Add the If Then Else Action
Configure If Then Else Parameters
In the window that opens, configure the following fields:
The ‘Will Execute If’ field is the section that checks whether the condition you defined is true. Here, you write a condition that specifies in which case the system will execute the ‘If Actions’ section. If this condition is met, the ‘If Actions’ will be executed.
If it is not met, i.e. if the condition is false, the ‘Else Actions’ are executed.
Example usage
In this example:
What Types of Conditions Can I Write?
In the ‘Will Execute If’ field, you can write
If Actions: You can define the actions to be performed if the condition is true here.
Example: If the condition ‘data.user.role’ = ‘Admin’ is met, redirect to the AdminPanel screen.
Else Actions: You can specify the actions to be performed if the condition is false.
Example: If the user is not an admin, redirect to the UserPanel screen.
Dynamic Redirection:
Redirection can be made based on the user's profile or transaction history.
Condition Creation Sources:
Action Entry Configuration:
Post-Action Usage
Technical Risks and Recommendations
The If Then Else action enables you to make conditional decisions in your application. It enhances the user experience by creating flexible process flows based on user interactions and application data. It is an effective tool for redirection, form validation, and approval processes.