conditional

Description

Checks whether the condition passed is met and executes the callback functions accordingly.

Input / Parameter

Output

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

Result

When the button is pressed, the console will print 'greater'.

Last updated