Creating a custom Geolocation variable

Now that you have a way to detect the user location, you will create a new User Variable in which you will store the geolocation coordinates of Belgium. At runtime, you will compare the cpInfoGeolocation system variable to your custom Belgium variable. If you detect that the learner is in Belgium, you should display the slide that you inserted in the project earlier in this section. Use the following steps to create a custom Belgium variable:

  1. Still in the Variables dialog of the takeTheTrain.cptx file, use the Type dropdown to return to the User Variables.
  2. Click the Add New button to create a new User Variable.
  3. Type v_locationBelgium in the Name field.
  4. Select the Geolocation checkbox below the Unused ...

Get Mastering Adobe Captivate 2017 - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.