conditional
Description
Checks whether the condition passed is met and executes the callback functions accordingly.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
condition | The condition to be checked against. | String/Text | - | - | Yes |
yesValue | The output value if condition is 'true'. | Any | - | - | No |
noValue | The output value if condition is 'false. | Any | - | - | No |
extra | Extra parameters stored and passed to callback. | Any | - | - | No |
Output
Description | Output Type |
---|---|
Returns the 'yesValue' or 'noValue'. | Any |
Callback
yesCallback
The function to be executed when the condition passed is 'true'.
noCallback
The function to be executed when the condition passed is 'false'.
Video
Coming Soon.
Example
The user wants to prove that the value 13
is greater than the value 1
and see the result in the console.
Step
No. | Description | |
---|---|---|
1. | Drag a button to a page in the mobile designer. Select the event | |
2. | Drag the function | |
3. | Fill in the inputs of the | |
4. | Drag the function | |
5. | The |
Result
When the button is pressed, the console will print 'greater'.
Links
Last updated