Conditional Action
You can use this element to perform an action depending on one or more conditions.
Properties
To show the properties of the Conditional Action, click the Properties tab (the slider icon) in the upper right sidebar.
Conditional Action
- Name
Here you give the element a name. This name is only used within appdoo. For example, you can quickly see in the outline where each Conditional Action is located. You can also edit the name by double-clicking on the Conditional Action in the outline. We recommend that you assign unique names.
Conditions
- Name
Here you give the conditions a name.
After you have added a Conditional Action to your screen, it already contains an empty condition. To add more conditions later, click the “Add Condition” button. A new section will be added where you can configure the condition.
In the first selectbox, select the operator for the condition. You can choose between the following options:
- The Value is Equal To…
- Text field
- Interpret as a Number
- The Value is Not Equal To…
- Text field
- Interpret as a Number
- The Value is Lower Than…
- Text field
- Or Equal
- The Value is Greater Than…
- Text field
- Or Equal
- The Statement … is true
- The Value is not empty
- The Value is not empty
- The Value is true
- The Value is false
- The Value is a valid email address
-
The Value is a valid URL
-
Arrow up
A click on this arrow moves the condition one position up in the list. This button is only clickable if the function is available. -
Arrow down
A click on this arrow moves the condition one position down in the list. This button is only clickable if the function is available. - “×” Button
A click on this button deletes the condition from the list.
Behavior
In this area, you specify which action is to be executed if all or one condition applies and which action is to be executed otherwise.
-
if …
-
all
All conditions must apply. -
At Least One
Of all the conditions specified, at least one condition must apply.
-
… of the Conditions Are/Is Met
-
then
-
(No Action)
-
Show Screen
This option allows you to show a specific screen of your project.-
Screen
Here you select the screen of your project to be shown. - Modal Presentation
You can choose between different transitions for the transition from the current screen to the target screen:- None
- Push from Bottom
- Flip
- Crossfade
-
Transfer Data
Activate this checkbox if you want to transfer the contents of a data source of the current screen to the target screen.The corresponding multiline selection field is only displayed if there is at least one Data Source on the current screen. Select a Data Source by clicking on the corresponding entry. The selected entry is displayed inverted.
-
-
Go Back
Select this option if you want to switch to the screen that was visible before the current screen. However, this does not apply if the user has switched screens via the Tab Bar. -
Perform Object Action
If you have selected this option, a multiline selection field with your objects (see “Objects” folder of the outline) is shown. Select an Object by clicking on the corresponding entry. The selected entry is displayed inverted.Depending on the selected object, various options are available in the select box below. For example, you can display an Alert View, start the playback of an Audio Player, or initiate the reload of a Data Source.
-
-
else
The options in this area are identical to the options in the then area.
Data Links
The following property of the element can be set using the data links:
- Data Value
All information about this area can be found on the separate Data Links page.