Conditions in Appverse
Last updated
Last updated
A Conditional Block is a logic-based structure used to execute specific actions or workflows only when predefined conditions are met. It enables dynamic decision-making by evaluating input values. In Appverse, a conditional block is used in the following features to control their executiion
A condition block in Appverse comprises of four components
Conditional field - This is the field on which the condition is applied. It can be a form input field or a system-generated field.
Operator - Determines how the conditional field is compared against a value.
Value - The specific value against which the conditional field is evaluated.
Add another additional block - This creates an additional conditional block at the same level or as a child within the conditional hierarchy.
The following system fields can be used in the conditional statements
Created by
Modified by
Status
Lock Record
Created At
Modified At
Version -> The version of the data.
Source -> Start - The start date and time of data capture.
Source -> Today - The date on which the data was captured.
Source -> Username - The user who captured the data.
Source -> Instancename - The identifier for the record.
Source -> Timespent - The time taken to capture the data.
Source -> Location - The location at which the data was captured.
Source -> Appversion - The version of Appverse Mobile Web at the time of data capture.
Source -> Phonenumber - The phone number of the user who captured the record.
Source -> Deviceid - The device id.
Source -> Devicemodel - The device model.
Currently, the following form input fields can be used in the conditional statements
Text
Integer
Decimal
Select One
Select Multiple
Date
Time
Date & Time
Calculate
The following operators are supported in Appverse conditional statements
Equal To - Applicable only for all valid input fields. Verifies if there is an exact match with the provided value.
Not Equal To - Applicable only for all valid input fields. Ignores records for which there is an exact match with the provided value.
In - Applicable only for all valid input fields. Checks for an exact match with any one of the values provided in the IN condition.
Not In - Applicable only for all valid input fields. Ignores records for which there is an exact match with any one of the values provided in the IN condition.
Exists - Applicable only for all valid input fields. Checks if a value exists for the field and compares it against a true or false input.
Greater than - Applicable only for number and date input fields. Checks if the data is greater than the provided value.
Greater than or Equal To - Applicable only for number and date input fields. Checks if the data is greater than or equal to the provided value.
Less than - Applicable only for number and date input fields. Checks if the data is lesser than the provided value.
Less than or Equal To - Applicable only for number and date input fields. Checks if the data is lesser than or equal to the provided value.
A Static Value is a fixed, predefined value that does not change dynamically based on user input or system conditions. It is manually entered or selected from a list of allowed values during configuration.
Outermost conditional blocks - All the outermost conditional blocks are at the same hierarchy and are joined by an AND statement.
Nesting in conditional blocks - Conditional statements can be nested infinitely. All the conditions at the same level can either be joined by an AND or by an OR statement.
Tip
To enter multiple static values in the value field, press Enter after each distinct value.
Text -
Integer -
Decimal -
Select One -
Select Multiple -
Date -
Time -
Date & Time -
Calculate -
Appverse System Fields - These fields are prefixed with a black dot followed by the data type of the field. E.g.