The cpInfoGeolocation variable gives you access to the location of the learner, and your custom v_locationBelgium variable defines what area of the world you consider as Belgium. In this section, you will create a conditional Advanced Action that will compare these two Variables and decide whether slide 2 must be displayed to the learner or skipped. We will do this by using the following steps:
- Use the Project | Advanced Actions tab to open the Advanced Actions dialog.
- Type in checkBeLocation as the name of the action.
- Select the Conditional Tab checkbox.
- In the If part of the action, check whether the cpInfoGeolocation variable is equal to the v_locationBelgium variable.
- In the Action section of the dialog box, double-click the first line and choose the Continue action.
- Click the Else button at the bottom of the dialog box.
- Double-click the first line of the ELSE panel and choose the Go to Next Slide action.
- Click the Save...