Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Working with Varibles in Lectora

can anyone here explain to me how to work with the variable in Lectora?
I'm just new to using the program and I can't figure out how to use it.
For example:
I have added a link to graphics so that you can click on them and a pop-up window will open. Only after about 10 seconds if you have not clicked on it, a signal arrow should appear which flashes in e. g. one second time. Is it possible to cover this with a variable cover?
Thank you very much!
Comments
-
Hi Lukas,
welcome to the community.
Variables can always be used when you want to know or remember what a user has done or what has happened on the page. You can create a variable, e.g. "linkclicked", initial value = 0. Add an action to the link:
On: Click
Action: Modify variable
Target: linkclicked
Type: Set equal to
Value: 1
In the beginning the variable equals 0, and you'll know the link has not yet been clicked as clicking the link sets the variable value equal to 1. The other way round: If the variable is equal to 1 you know the link has been clicked.
Similar with making an object blink: You can use a variable to count the number of times an image has blinked, variable "blinks", initial value 0. Make the arrow initially invisible. Use any action to show it.
Add actions to the arrow:
On: Show
Action: Hide
Target: This object
Delay: 1 second
On: Show
Action: Modify variable
Target: blinks
Type: Add to variable
Value: 1
In the beginning "blinks" equals 0. Each time the image is shown 1 is added and the image is hidden again after 1 second.
On: Hide
Action: Show
Target: This object
Delay: 1 second
To make the blinking stop after a certain number of times, add a condition to the action:
Only if "blinks" less than 3. This way the arrow will be shown and hidden again 3 times. When the image has been shown for the 3rd time, "blinks" will be equal to 3 and the show action will not be executed again.
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products