Explore the community Forums Social Lounge Variable Attributes in Lectora with Javascript Reply To: Variable Attributes in Lectora with Javascript

#405975 Score: 0
Profile photo of Joe Wieloch
Joe Wieloch
Moderator
beginner
intermediate
friend finder
contributor
LUC16 Attendee
verified member
wise owl
LUC17 Attendee
advanced
picture perfect
70 pts
@wheels

You can find that “class” defined in trivantis-cookie.js

function Variable(name,defval,f,cm,frame,days,title)
name - the variable name
defval - default value
f -  flag for time (0 - not time related, >0 - time related)
cm - CourseMill variable (set to zero if not CourseMill related)
frame - indicates course type (null, 'scorm', 'scorm2004', 'tincan')
days - how many days the value is valid for or null
title - the name of the title

varName.getValue() to get the current value
varName.set('something') to set the value