The Logic point can be used to add conditional logic to your projects that can show/hide points and store a value when the conditions have been met. This point is especially useful in hiding points until another pre-requisite point has been completed or to display additional information if a point has a specific value.
The types of conditions that are available are list below:
Checks if the selected point's value is less than or greater than the conditional value but not equal to it.
Checks if the selected point's value is less than or equal to the conditional value.
Checks if the selected point's value is greater than or equal to the conditional value.
Multiple Logic points can be used together to create a chain of conditions, effectively allowing you to create as many conditions as desired. This can be done by adding a new Logic point which uses a previous Logic point in one of its conditions and adding a second condition. This point can then be re-used in another Logic point in the same fashion and can be done repeatedly to create a chain of logical conditions. This can be seen in more detail in the provided sample projects .
By default, the Logic point does not save any data to the session. This feature can be enabled from the
tab, in the Logic point's properties window, by ticking the
Include in Data
checkbox. If this option is enabled, you will also be required to assign the point with an
on the same tab.
The Logic point can be configured in the Mobile Data Anywhere Designer to customise the behaviour of the point. Below is an example of the properties window for a Logic point, opened in the Mobile Data Anywhere Designer.
The first section of the properties window allows you to create logical conditions which can be used to show/hide points and change the output value of the Logic point. Each condition has three fields which can be set. From left to right:
Two conditions can be added to a Logic point with the option to require both conditions to be met,
by ticking the
checkbox, or to require only one of the two conditions to be met, by ticking the
The second section is where you can select which points will become visible when the Logic point's conditions are met. To select a point, double click on the point in the list. Each select point will automatically be set to invisible when the condition is not met and will change to visible when the condition is met.
This is used to determine the output value of the Logic point, which can be stored in the session data or used in other points, such as another Logic point. There are three optional output values that can be set for a Logic point which are used for each of the three states of a Logic point:
Only one output value will be used at one time and the value can be completely customised or can be selected
from a list of pre-defined values such as;
Yes/No, True/False, 1/0
Basic Points Sample
project contains examples of how to use many of the various points that are available. This project also contains a
page that demonstrates some of the ways that this point can be used in your projects.