Allows a user to check a condition on the designed page of the application.
Smartcode
Syntax
Parameters
- control name/variable(Required) – Name of the control or variable name
- condition(Required) – User can select the condition from the picker
- value(Required) – Assign the value directly or by giving the control name to check the condition
Directcode
User can include the If..Else statement through Directcode as described below
Syntax
if (condition) {
// block of code to be executed if the condition is true
} else {
// block of code to be executed if the condition is false
}
Example
if (username == “AB123” && Password == “12345”)
{
alert(“Login Success”);
}
else
{
alert(“Login Failed”);
}